CI服务器上的.NET 4.0构建问题 [英] .NET 4.0 build issues on CI server

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

问题描述

任何人都可以在CI服务器上编译.NET 4.0应用程序而无需在CI服务器上安装Visual Studio 2010?

Anybody manage to get .NET 4.0 applications compiling on a CI server without installing Visual Studio 2010 on a CI server?

.NET 4.0没有SDK。在CI服务器上安装了.NET 4.0。 Msbuild.exe适用于简单项目并提供以下警告:

No SDK exists for .NET 4.0. Have installed .NET 4.0 on CI Server. Msbuild.exe works for simple projects and give the following warning:


(GetReferenceAssemblyPaths target) - > C:\Windows \ Microsoft。 NET\Framework\v4.0.30319\Microsoft.Common.targets(847,9):warning MSB3644:未找到框架.NETFramework,Version = v4.0的引用程序集。要解决此问题,请为此框架版本安装SDK或定位包,或将应用程序重新定位到已安装SDK或定位包的框架版本。请注意,程序集将从全局程序集缓存(GAC)中解析出来,并将用来代替参考程序集。因此,您的程序集可能无法正确定位到您打算的框架。

(GetReferenceAssemblyPaths target) -> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(847,9): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" 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.


推荐答案

t需要安装VS,现在可以安装Microsoft Windows SDK for Windows 7和.NET Framework 4。

You don't need to install VS anymore, you can install the "Microsoft Windows SDK for Windows 7 and .NET Framework 4" now.

http://www.microsoft.com/downloads/details.aspx ?displaylang = en& FamilyID = 6b6c21d2-2006-4afa-9702-529fa782d63b

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

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