Created
December 21, 2016 20:13
-
-
Save krippz/0f8c282c971d9b078f5cd922b1420b45 to your computer and use it in GitHub Desktop.
namespace ambiguity in cake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
For reference: | |
my tools in packages.config | |
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Cake" version="0.16.2" /> | |
<package id="WiX" version="3.10.1" /> | |
<package id="WixSharp.bin" version="1.2.0.0" /> | |
</packages> | |
*/ | |
#r tools/WixSharp.bin/lib/WixSharp.dll | |
#r tools/WixSharp.bin/lib/WixSharp.UI.dll | |
#r tools/WixSharp.bin/lib/WixSharp.Msi.dll | |
#r tools/WixSharp.bin/lib/BootstrapperCore.dll | |
#r tools/WixSharp.bin/lib/Microsoft.Deployment.WindowsInstaller.dll | |
using io = System.IO; | |
using WixSharp; | |
using WixSharp.CommonTasks; | |
using Microsoft.Deployment.WindowsInstaller; | |
Task("build") | |
.Does(() => | |
{ | |
//This call gives me the error even with the alias, using io = System.IO; | |
var testfile = new File(); | |
//This call works as expected | |
var anotherfile = new WixSharp.File(); | |
}); | |
RunTarget("build"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment