I've come across an issue recently while trying to write an MSBuild script for our build server that I'm about 90% sure is related to Wix#. When I run my build script on my development machine, everything works like expected, and the build succeeds. However,
when I run on the build server, my script tries to run my program, which I wouldn't expect it to do during a build. I tracked it down further to this line during my build:
"C:\Program Files (x86)\Jenkins\workspace\Test Build\BuildArtifacts\MsiBuildTool.exe" "/MBSBUILD:MsiBuildTool"
Based on this question:
I'm guessing it has something to do with cscs.exe being run. My questions are: 1) Is there a way to disable MSI Authoring, or a least set it so that it doesn't run my project's .exe files? and 2) If I can't
disable MSI Authoring, do you know what properties I might need to set on my build server to make it run like it does on my local machine?
I've attached my build script for reference, just in case.
<?xml version="1.0" encoding="utf-8"?>
<NUnitConsole Include="C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console.exe"/>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<Platform Condition="'$(Platform)' == ''">Any CPU</Platform>
<Target Name="Init" DependsOnTargets="Clean">
<Target Name ="Compile" DependsOnTargets="Init">
<Target Name="RunTests" DependsOnTargets="Compile">
<Exec Command='"@(NUnitConsole)" @(UnitTestsDll) /xml=@(TestResultsPath)'/>