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

查看:29
本文介绍了未解决对“产品:*"部分中符号“属性: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 的引用

Add a reference to WixNetFxExtension.dll in your project

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

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