.NET 4.0的建立问题CI服务器上

编程入门 行业动态 更新时间:2024-10-25 12:28:07
本文介绍了.NET 4.0的建立问题CI服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有人设法让.NET 4.0应用程序编译CI服务器上没有一个CI服务器上安装Visual Studio 2010的?

没有SDK存在.NET 4.0。已经安装了.NET 4.0 CI服务器上。 Msbuild.exe适用于简单的项目,并给予以下警告:

  

(GetReferenceAssemblyPaths目标) - > C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.targets(847,9):警告MSB3644:参考组件的框架.NETFramework,版本= V4 .0没有被发现。要解决此问题,安装SDK或定位包这个框架版本或重新定位你的应用程序版本您拥有SDK或定位安装包的框架。请注意,组件会从全局程序集缓存(GAC)来解决和代替参考组件将被使用。因此,程序集可能无法正确​​针对您打算框架。

解决方案

您不必再安装VS,您可以安装Microsoft Windows SDK的Windows 7和.NET Framework 4了。

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

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

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: 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.

解决方案

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

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

更多推荐

.NET 4.0的建立问题CI服务器上

本文发布于:2023-11-12 04:41:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580530.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器上   NET   CI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!