admin管理员组文章数量:1304098
When I create a Merge Module with WiX, the wixproj file has
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
<Error Text="The WiX Toolset v3.11 build tools must be installed to build this project. To download the WiX Toolset, see .11/stable" />
</Target>
at the end. I did an echo and this is what I get back
WixTargetsPath:
MSBuildExtensionsPath32: C:\Program Files\dotnet\sdk\9.0.101
WixTargetsImported:
So I get The WiX Toolset v3.11 build tools must be installed to build this project. To download the WiX Toolset, see .11/stable
, but I installed WiX 3.14
and the WiX v3 Visual Studio 2022 extension
.
The errors only occur during dotnet
-commands (clean, build, restore). But not when I do a Visual Studio Build/Rebuild Solution
.
When I create a Merge Module with WiX, the wixproj file has
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
<Error Text="The WiX Toolset v3.11 build tools must be installed to build this project. To download the WiX Toolset, see https://wixtoolset./releases/v3.11/stable" />
</Target>
at the end. I did an echo and this is what I get back
WixTargetsPath:
MSBuildExtensionsPath32: C:\Program Files\dotnet\sdk\9.0.101
WixTargetsImported:
So I get The WiX Toolset v3.11 build tools must be installed to build this project. To download the WiX Toolset, see https://wixtoolset./releases/v3.11/stable
, but I installed WiX 3.14
and the WiX v3 Visual Studio 2022 extension
.
The errors only occur during dotnet
-commands (clean, build, restore). But not when I do a Visual Studio Build/Rebuild Solution
.
1 Answer
Reset to default 3WiX v3 does not support the modern build requirements of dotnet
commands. WiX v3 was designed in 2009, well before any of that stuff was dreamed up. :)
You need to move to WiX v4+ and it's modern Sdk-style targets, which fully support dotnet build
.
本文标签:
版权声明:本文标题:.net - Where is WixTargetsImported set? "The WiX Toolset v3.11 build tools must be installed to build this project.& 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741774563a2396948.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论