Unauthorized reference to the symbol "Property: NETFRAMEWORK45" in the section "Product: *"

I get an error when creating an application in TFS 2010. Unresolved reference to the symbol "Property: NETFRAMEWORK45" in the section "Product: *". This is for Wix 3.9

The Wix package has a NetFxExtension link. I can build wix on my local machine perfectly, but when I go to build it via TFS, I get an error. Can someone help me figure this out? I have the code below that is causing the error.

<PropertyRef Id="NETFRAMEWORK45"/> <Condition Message="This application requires .NET Framework 4.5. Please install the .NET Framework 4.5 then run this installer again."> <![CDATA[Installed OR NETFRAMEWORK45]]> </Condition> 
+11
source share
2 answers

You must include WixNetFxExtension in your project in three places.

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

  • Add link to WixNetFxExtension.dll in your project

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

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

We had a similar problem, although we used the WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED property. It turned out that we had WiX 3.9 installed on the build server, and 3.10 on the development machines. The upgrade to WiX 3.10 helped. Property doesn't seem to be allowed in previous versions

0
source

Source: https://habr.com/ru/post/979465/


All Articles