WixSharp executing project.

Aug 16, 2016 at 2:56 PM
Edited Aug 16, 2016 at 2:59 PM

I notice when I am doing simple project like the following, that wixsharp seems to build the MSI when I build my app in visual studio. Is there a way I can turn this off so it only runs when I actually execute the code in visual studio. (Press the Start button).


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

 using WixSharp;

namespace Wix6
    class Program
        static void Main(string[] args)

            string compiler = @"D:\Data\Ward\Downloads\Compressed\WixSharp.\Wix_bin\bin";

            Compiler.WixLocation = compiler;

            var project = new Project("MSI1");

            project.GUID = new Guid("6f330b47-2577-43ad-9095-1861ba25889b");



Aug 17, 2016 at 1:43 AM
Yes it is possible. Just create a ConsoleApp prject and add "WixSharp.bin" NuGet package. That's it.

"WixSharp" package includes "WixSharp.bin" and a custom MSBuild target that triggers building MSI as post C# build step. And it is exactly the step that you don't need.
Aug 17, 2016 at 3:37 AM
Hi Oleg,

Great thanks for your help.

Much appreciated.