- Use the '.Net core' template
- Comment out or delete the
PostBuild target in the generated csproj; unlike the previous templates, this is in the csproj rather than in the nuget package, so you can easily disable the 'run-with-no-args-after-build' behavior
dotnet build
dotnet run YOUR_ARGS_HERE < don't include Program.cs
> dotnet run
Required argument missing for command: 'XRFrameTools-Installer'.
Description:
Build the MSI
Usage:
XRFrameTools-Installer <SOURCE> [options]
Arguments:
<SOURCE> Location of files to include in the installer
Options:
--version Show version information
-?, -h, --help Show help and usage information
> dotnet run ..\cmake-build-debug-clang\out\Debug
----------------------------------------------------------
Wix project file has been built: C:\Users\fred\code\XRFrameTools\XRFrameTools-Installer\My Product.wxs
Compiling My Product.wxs
Source base directory: C:\Users\fred\code\XRFrameTools\cmake-build-debug-clang\out\Debug
----------------------------------------------------------
MSI file has been built: C:\Users\fred\code\XRFrameTools\XRFrameTools-Installer\My Product.msi
ProductName: My Product
Version : 1.0.0.0
ProductId : {e3334ff2-9b8f-4f3c-ba25-5f966f3b7dca}
UpgradeCode: {e3334ff2-9b8f-4f3c-ba25-5f965f3b7dc9}
Auto-generated InstallDir ID:
INSTALLDIR=%ProgramFiles%\My Company\My Product