WiX Toolset MSBuild integration
$ dotnet add package WixToolset.SdkThe WixToolset.Sdk package provides the WiX Toolset as an MSBuild SDK for both .NET (v6 or later) and .NET Framework (v4.7.2 or later). SDK-style projects have smart defaults that make for simple .wixproj project authoring.
Web Site | Documentation | Issue Tracker | Discussions
To ensure the long-term sustainability of this project, users of this package who generate revenue must pay an Open Source Maintenance Fee. While the source code is freely available under the terms of the LICENSE, this package and other aspects of the project require adherence to the Open Source Maintenance Fee EULA.
To pay the Maintenance Fee, become a Sponsor.
Here's a minimal .wixproj that builds an MSI from the .wxs source files in the project directory:
Example project file: QuickStart.wixproj
<Project Sdk="WixToolset.Sdk/7.0.0">
</Project>
Example source code: QuickStart.wxs
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Id="AcmeCorp.QuickStart" Name="QuickStart Example" Manufacturer="ACME Corp" Version="0.0.1">
<File Source="example.txt" />
</Package>
</Wix>
Build your MSI from the command-line:
dotnet build
For more information about WiX as an MSBuild SDK, see https://docs.firegiant.com/wix/using-wix/#msbuild-and-dotnet-build.
For more information about WiX targets, properties, and items, see https://docs.firegiant.com/wix/tools/msbuild/.