WiX - VS Schema and Visual Studio 2019

落爺英雄遲暮 提交于 2019-12-11 05:26:35

问题


I'm having trouble upgrading a setup project that referenced Visual Studio 2017 and now I want to reference Visual Studio 2019.

Product.wxs references the following properties (as documented here):

VS2019_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED
VS2019_EXTENSIONS_DIR

When building the setup I get the following error:

Unresolved reference to symbol 'Property:VS2019_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED' in section 'Product:*'.
Unresolved reference to symbol 'Property:VS2019_EXTENSIONS_DIR' in section 'Product:*'.

This worked perfectly before using the corresponding Visual Studio 2017 properties:

VS2017_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED
VS2017_EXTENSIONS_DIR

What am I missing here?

PS:

  • Wix Toolset version is 3.11.1.2318.
  • Wix Toolset Visual Studio 2019 Extension is 1.0.0.4.

Thanks.


回答1:


You need the latest prerelease developer build of WiX 3.14 found at https://wixtoolset.org/releases/development/ for those properties to exist.

The 2019 extension only integrates WiX with VS 2019. The extensions such as VS, Util, UI, SQL and so on are part of WiX proper. Confusing I know.



来源:https://stackoverflow.com/questions/57589954/wix-vs-schema-and-visual-studio-2019

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!