构建问题 [英] Issues with build

查看:40
本文介绍了构建问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我一直面临着我的构建问题,它引发了警告:


C:\ Windows \ Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983):框架".NETFramework,Version = v4.5.2"的引用程序集。没找到。要解决此问题,请为此框架版本
安装SDK或Targeting Pack,或者将您的应用程序重新定位到已安装SDK或Targeting Pack的框架版本。请注意,程序集将从全局程序集缓存(GAC)中解析,并将用于代替引用程序集。因此,您的
程序集可能无法正确定位到您想要的框架。


.Net框架4.5.2和SDK已安装在服务器上。请告知可能导致警告的原因。

解决方案

Hi Ragini Bamezai,


欢迎来到MSDN论坛。


您是使用MSBuild命令构建此解决方案还是直接在VS中构建?


你使用的VS版本是什么创建此解决方案?


如果您的解决方案是在在VS 2013或更高版本中,MSBuild路径应为
C:\Program Files(x86)\ MSBuild \14.0\bin 而不是: C:\ Windows \ Microsoft.NET \ Framework64 \v4.0.30319





最好的问候,


Sara  


Hello,

I have been facing issues with my build which throws below warning:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (983): The reference assemblies for framework ".NETFramework,Version=v4.5.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

.Net framework 4.5.2 and SDK has been installed on the server. Please advise what could be causing the warning.

解决方案

Hi Ragini Bamezai,

Welcome to the MSDN forum.

Did you build this solution using the MSBuild command or directly build in the VS?

What’s the VS version that you used to create this solution?

If your solution was created in the VS 2013 or later, the MSBuild path should be C:\Program Files (x86)\MSBuild \14.0\bin not this: C:\Windows\Microsoft.NET\Framework64\v4.0.30319.

Best regards,

Sara  


这篇关于构建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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