的MSBuild 12的TeamCity没有找到引用程序集的.NET 4.5.1 [英] MSBuild 12 in TeamCity not finding reference assemblies for .NET 4.5.1

查看:414
本文介绍了的MSBuild 12的TeamCity没有找到引用程序集的.NET 4.5.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到我的TeamCity构建日志下面的警告消息:

I'm getting the following warning messages in my TeamCity build log:

[GetReferenceAssemblyPaths] C:\ Program Files文件(x86)的\的MSBuild \ 12.0 \ BIN \ Microsoft.Common.CurrentVersion.targets(989,5):警告MSB3644:参考组件的框架.NETFramework,版本= V4。没有找到5.1中。要解决此问题,安装SDK或定位包这个框架版本或重新定位你的应用程序版本您拥有SDK或定位安装包的框架。请注意,组件会从全局程序集缓存(GAC)来解决和代替参考组件将被使用。因此,程序集可能无法正确​​针对您打算框架。

[GetReferenceAssemblyPaths] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(989, 5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5.1" 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.

我使用了的MSBuild 亚军类型。我有微软构建工具2013 选择的MSBuild的版本和 12.0 选择的MSBuild ToolsVersion。我所有的我的解决方案项目的目标4.5.1。我的解决办法是在VS2013。

I'm using the MSBuild Runner Type. I have Microsoft Build Tools 2013 selected for the MSBuild Version and 12.0 selected for MSBuild ToolsVersion. All of my projects in my solution are targeting 4.5.1. My solution is in VS2013.

我在TeamCity的服务器上安装的MSBuild工具2013(重新启动TeamCity的服务)和所有建立代理(重新启动这些服务还)。

I installed the MSBuild Tools 2013 on the TeamCity server (restarted the TeamCity service) and all build agents (restarted those services also).

这是不是我需要担心,如果是的话我该怎么去修正?

Is this something I need to worry about, and if so how can I get it corrected?

推荐答案

我安装了.NET Framework 4.5.1 SDK,它似乎是现在的工作正常。

I installed the .NET Framework 4.5.1 SDK and it seems to be working properly now.

更新:

这就是所谓的 Windows软件开发工具包(SDK)的Windows 8.1 通过了。

在启动安装程序后,你会到达的选择您要安装的屏幕的功能,在这里你可以取消勾选一切,除了在的.NET Framework 4.5.1 SDK 并你只需要一些70-80 MB的磁盘空间,而不是1.5 GB,整个SDK将使用。

After starting the installer you'll get to the Select the features you want to install screen where you can untick everything except the .NET Framework 4.5.1 SDK and you'll need only some 70-80 MB of disk space, not the 1.5 GB that the whole SDK would use.

这篇关于的MSBuild 12的TeamCity没有找到引用程序集的.NET 4.5.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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