-
Hello, i am faced with a problem a can't get a solution for some time and hope that somebody can help me. I tried to build a wix bundle in visual studio with an msbuild .wixproj project. I added the following references to my project file: <ItemGroup>
<PackageReference Include="WixToolset.Bal.wixext" Version="4.0.4" />
<PackageReference Include="WixToolset.BalUtil" Version="4.0.4" />
<PackageReference Include="WixToolset.Heat" Version="4.0.4" />
<PackageReference Include="WixToolset.Util.wixext" Version="4.0.4" />
</ItemGroup> my bundle.wxs file contains the following lines: <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"
xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<Bundle DisableModify="yes" Name="Infowas Service V$(var.ProductVersion)" Version="$(var.ProductVersion)" Manufacturer="LfU" UpgradeCode="61444485-14b3-4765-a103-f4c703f67eba">
<BootstrapperApplication>
<bal:WixStandardBootstrapperApplication LicenseUrl="" Theme="hyperlinkLicense" />
</BootstrapperApplication>
... when i compile it i get an wix0200 error indicating that elements from teh bal namespace are not present. the references are shown correctly in solution explorer under visual studio. but when i check the "installed" tab on the nuget packages it shows empty even i installed the extensions before. during build a saw that the wixextensions are not resolved correctly. Can anyone tell me what i could try else? I am using Visual Studio 2022 pro (17.8.6) under windows 11 with wix 4.0.4. thank you very much, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I would build from the command-line using |
Beta Was this translation helpful? Give feedback.
-
Hello,
when building from the command line the extensions are found and used with the -ext parameter. When I start the build process from within visual studio the -ext parameter is missing completely in the wix command line.
Von: Rob Mensching ***@***.***>
Gesendet: Freitag, 9. Februar 2024 15:38
An: wixtoolset/issues ***@***.***>
Cc: Kellerer, Georg (LfU) ***@***.***>; Author ***@***.***>
Betreff: Re: [wixtoolset/issues] wix extensions not resolved correctly in msbuild (Discussion #7989)
I would build from the command-line using msbuild -Restore -bl to download the package referenced and create a log file. Then I'd look in the log for the command-line for wix.exe to see if the extension really is being pass along. The log file will explain a lot.
—
Reply to this email directly, view it on GitHub<#7989 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASV2P64FZF2B2FJMWLRBAUTYSYYE7AVCNFSM6AAAAABDBDU3OOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DIMJZG43DO>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
in the output window of visual studio i saw |
Beta Was this translation helpful? Give feedback.
-
the following snippet in my .wixproj file solved my problem. Maybe there's a better solution especially for the HintPath but it works: |
Beta Was this translation helpful? Give feedback.
the following snippet in my .wixproj file solved my problem. Maybe there's a better solution especially for the HintPath but it works:
WixToolset.Bal.wixext
$(NuGetPackageRoot)\wixtoolset.bal.wixext\4.0.4\wixext4\WixToolset.Bal.wixext.dll
WixToolset.Util.wixext
$(NuGetPackageRoot)\wixtoolset.util.wixext\4.0.4\wixext4\WixToolset.util.wixext.dll