/// <summary> /// Runs MSBuild for a WiX Project with target parameter 'Clean' for particular configuration and architecture and verifies that subtasks were ran correctly /// </summary> /// <param name="wixProjectFile">Path to the WiX Project to be build</param> /// <param name="configuration">Configuration parameter</param> /// <param name="architecture">Architecture parameter</param> private static void TestCleanWiXInstaller(string wixProjectFile, string configuration, string architecture) { WixprojMSBuild wixprojMSBuild = WixTaskTests.TestBuildWiXInstallerTasks(wixProjectFile, "Build", configuration, architecture); wixprojMSBuild.OtherArguments = string.Format("/t:Clean /p:Configuration={0};Platform={1}", configuration, architecture); wixprojMSBuild.Run(); }
public void RebuildWiXInstaller() { // Configuration=Debug; Platform=x86; WixTaskTests.TestBuildWiXInstallerTasks(WixTaskTests.testWiXInstallerx86, "Rebuild", "Debug", "x86"); // Configuration=Release; Platform=x86; WixTaskTests.TestBuildWiXInstallerTasks(WixTaskTests.testWiXInstallerx86, "Rebuild", "Release", "x86"); // Configuration=Debug; Platform=x64; WixTaskTests.TestBuildWiXInstallerTasks(WixTaskTests.testWiXInstallerx64, "Rebuild", "Debug", "x64"); // Configuration=Release; Platform=x64; WixTaskTests.TestBuildWiXInstallerTasks(WixTaskTests.testWiXInstallerx64, "Rebuild", "Release", "x64"); }