wix4 wixproj文档元素名称’Project’无效。

huangapple go评论42阅读模式
英文:

wix4 wixproj document element name 'Project' is invalid

问题

当尝试使用新的wix工具集来构建wix4项目时,使用以下方式提供的命令:

wix build -d Configuration=Debug MySetup.wixproj

我收到了以下错误信息:

> 错误 WIX0048: 文档元素名称'Project'无效。WiX源文件必须使用'Wix'作为文档元素名称。

该项目由5个文件组成。wixproj 文件,我怀疑它会协调构建。有3个wxs 文件,其中一个定义了设置的基本信息,另外2个由HeatDirectory(在wixproj中定义)自动填充。最后一个文件是一个xslt 文件。

这些文件已经从wix3迁移,并使用了VS 2022的HeatWave扩展。

迁移是否遗漏了一些步骤,或者我应该以不同的方式调用构建命令?

对我来说,似乎wixproj文件缺少一些基本信息,以使wix构建命令正常工作。

英文:

When trying to build a wix4 project using a the new wix toolset provided like this:

wix build -d Configuration=Debug MySetup.wixproj

I get this error:

> error WIX0048: The document element name 'Project' is invalid. A WiX source file must use 'Wix' as the document element name.

The project consists of 5 files. The wixproj file which I suspect will orchestrate the build. 3 wxs one that defines the basics from the setup and 2 which are filled up automatically by the HeatDirectory (defined in the wixproj). And last file is a xslt.

Those files have been migrated from wix3 using the VS 2022 HeatWave extension.

Did the migration miss some step or should I call the build in a different way?

To me looks like the wixproj file is missing some basic info to let the wix build command to work properly.

答案1

得分: 1

wix build 用于构建 WiX 源文件,不使用 MSBuild。要构建 .wixproj,请使用 msbuilddotnet build

英文:

wix build is for building WiX source files without MSBuild. To build a .wixproj, use msbuild or dotnet build.

huangapple
  • 本文由 发表于 2023年2月8日 17:56:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/75384042.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定