Unresolved reference to symbol 'Property:NETFRAMEWORK45' in section 'Product:*'

情到浓时终转凉″ 提交于 2019-12-05 00:41:07

You have to include the WixNetFxExtension in your project, in up to 3 places

  1. in the Wix element of your wxs file, add the namespace xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"

  2. Add a reference to WixNetFxExtension.dll in your project

  3. If you are building manually using light.exe, you also need to add -ext WixNetFxExtension to your command line

As suggested by Florian Straub to my comment, I added my comment as an answer to the post, in addition to a comment on the original post.

We had a similar problem, though the property we were using was WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED. Turned out we had WiX 3.9 installed on the build server, while 3.10 on development machines. Upgrading to WiX 3.10 helped. Seems the property is not resolved in previous versions

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