gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 11:07:03 32 4
gpt4 key购买 nike

是否有人设法在 CI 服务器上编译 .NET 4.0 应用程序,而无需在 CI 服务器上安装 Visual Studio 2010?

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

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

最佳答案

您不再需要安装 VS,您现在可以安装“Microsoft Windows SDK for Windows 7 and .NET Framework 4”。

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

关于CI 服务器上的 .NET 4.0 构建问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2730765/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com