在“产品:*”部分中未引用对符号“ Property:NETFRAMEWORK45”的引用 [英] Unresolved reference to symbol 'Property:NETFRAMEWORK45' in section 'Product:*'

查看:129
本文介绍了在“产品:*”部分中未引用对符号“ Property:NETFRAMEWORK45”的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TFS 2010中构建应用程序时出现错误。产品:*部分中未引用符号 Property:NETFRAMEWORK45。这是针对Wix 3.9的。

I am getting an error when building an app in TFS 2010. Unresolved reference to symbol 'Property:NETFRAMEWORK45' in section 'Product:*'. This is for Wix 3.9

该Wix软件包引用了NetFxExtension。我可以在本地计算机上很好地构建wix,但是当我通过TFS进行构建时,出现了错误。谁能帮我解决这个问题?我有以下导致错误的代码。

The Wix package has NetFxExtension referenced. I can build the wix on my local machine fine, but when I go to build it through TFS I get the error. Can anyone help me figure this out? I have the below code 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>


推荐答案

您必须包括 WixNetFxExtension 在您的项目中,最多3个地方

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


  1. 在您的wxs文件的Wix元素中,添加名称空间
    xmlns:netfx = http://schemas.microsoft.com/wix/NetFxExtension

在项目中添加对 WixNetFxExtension.dll 的引用

这篇关于在“产品:*”部分中未引用对符号“ Property:NETFRAMEWORK45”的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆