问题
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