在哪里可以下载我的构建服务器的.NET 4.5多目标包? [英] Where can I download the .NET 4.5 Multitargeting Pack for my build server?

查看:2136
本文介绍了在哪里可以下载我的构建服务器的.NET 4.5多目标包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在TeamCity中构建一个.net 4.5 / VS2012解决方案。我的代码工作在安装了VS2012的代理上,但在没有VS2012的代理上,我收到类似这样的警告:

I want to build a .net 4.5/VS2012 solution in TeamCity. My builds work on the agent that has VS2012 installed, but on the agent that doesn't have VS2012, I get warnings like this:


C:\Windows \Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5):warning MSB3644:框架.NETFramework,Version = v4.5的引用程序集未找到。

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found.

要解决此问题,请为此框架版本安装SDK或定位包,或将您的应用程序重新定位到已安装SDK或定位包的框架版本。请注意,程序集将从全局程序集缓存(GAC)中解析出来,并将用来代替参考程序集。因此,您的程序集可能无法正确定位到您打算的框架。

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.

我可以安装目标而不安装所有的Visual Studio 2012,就像我可以用.NET 4.0?

Can I install the targets without installing all of Visual Studio 2012, like I could with .NET 4.0?

下载在哪里?

(我觉得可笑的问这个...但我已经搜索和搜索! href =http://msdn.microsoft.com/en-US/hh487283.aspx>这个网站建议它只适用于VS2012,这似乎疯狂。)

(I feel ridiculous asking this...but I have searched and searched for it! Honest! This site suggests it's only available with VS2012, which seems like madness.)

推荐答案

您不需要安装任何SDK。只需将以下文件夹从您的开发机器复制到您的TFS构建机器的同一文件夹:

You don't need to install any SDK. Just copy the following folder from your development machine into the same folder of your TFS build machine:


C:\Program Files(x86) \参考
Assemblies\Microsoft\Framework\.NETFramework\v4.5

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5






如果这不适用于您,请参阅: http: //getdotnet.azurewebsites.net/target-dotnet-platforms.html ,您可以在其中找到所需的SDK。但是请注意从@ Lu55的注释:从.NET Framework 4.5部分链接到Windows 8的Windows软件开发工具包(SDK)意外重定向到适用于Windows 8.1的Windows软件开发工具包(SDK)。 NET Framework 4.5.1


If this doesn't work for you, refer to: http://getdotnet.azurewebsites.net/target-dotnet-platforms.html where you'll find the SDKs you need. However note the comment from @Lu55: Link to "Windows Software Development Kit (SDK) for Windows 8" from .NET Framework 4.5 section unexpectedly redirects to "Windows Software Development Kit (SDK) for Windows 8.1" which is for .NET Framework 4.5.1.

这篇关于在哪里可以下载我的构建服务器的.NET 4.5多目标包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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