Replies: 1 comment 5 replies
-
I ran the following commands, and things looked good: C:\> wix --version
5.0.1+2f00cbe6
C:\> wix extension add -g WixToolset.Netfx.wixext/5.0.1
C:\> wix extension list -g
WixToolset.Netfx.wixext 5.0.1 Note: It's a good idea to specify the version when installing an extension to ensure it is compatible with your version of the WiX toolset. So you should do the following instead. C:\> wix extension add -g WixToolset.Netfx.wixext/5.0.1 However, I recommend a different approach. Using a .wixproj and For example: my.wixproj <Project Sdk="WixToolset.Sdk/5.0.1">
<PackageReference Include="WixToolset.Netfx.wixext" Version="5.0.1" />
</Project> and my.wxs: <Wix ...>
...
</Wix> Then, to build: dotnet build I find two files and one command line easier to manage than two command lines and one file. Plus, you're better set up for change. For example, it is easy to add more .wxs files, and you don't need to change the command line or .wixproj file. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Wix 3 it was possible to use the Wix extension dlls directly by placing them in the wix binary directory and then declaring their usage in the command line (e. g. "-ext WixToolset.Netfx.wixext"). This possibility seems to have gone in Wix 4/5. I am migrating a build job operating on command line only without using a project or an extension cache (so not using nupkg either). I also tried to install the extensions by pushing the add command to command line ("wix extension add -g WixToolset.Netfx.wixext"), but this results in an error "Could not find expected package root folder wixext5". Of course, the "add" command works manually, but I need it as part of a command line called from a Python shell script that will run on a build machine. With Wix 3, that worked fine. How this is supposed to work in Wix 4/5?
Beta Was this translation helpful? Give feedback.
All reactions