我应该在构建服务器上安装SDK吗?

Kev*_*eus 3 c# cruisecontrol.net msbuild build-automation build-process

(这是一个.net构建服务器)

我收到以下错误:

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1679,9): error MSB3091: Task failed because "LC.exe" was not found, or the .NET Framework SDK v2.0 is not installed.  

The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework. 

 You may be able to solve the problem by doing one of the following: 

 1.) Install the .NET Framework SDK v2.0.  

2.) Manually set the above registry key to the correct location.  3.) Pass the correct location into the "ToolPath" parameter of the task.
Run Code Online (Sandbox Code Playgroud)

这是因为我们使用的是需要LIC.exe编译的组件.

现在我可以通过构建服务器上安装微软最新的SDK解决这个问题,但我认为整点构建服务器的是不让自己的开发工具安装在其上.我想我可以解决这个问题,但是在做了一些事情之后不会解决这些问题(就像这些人一样)

http://richardsbraindump.blogspot.com/2009/07/some-teambuild-fun-and-games.html

我应该安装SDK吗?更重要的是:

构建服务器的主要目的是什么?

Joh*_*ers 8

构建服务器的主要目的是构建代码.构建代码所需的任何内容都需要在构建服务器上.


Sim*_*ens 6

您的构建服务器必须包含所有构建/开发工具/库.这就是构建它的方式.

所以是的,安装SDK.

  • 构建服务器的目的是保持构建环境不变.开发人员PC经常更改并在其上具有不同的库版本.通过构建PC,您知道您的构建将始终针对正确的库和编译器.如果要验证构建在非开发框上是否正确运行,则需要在其他计算机上执行所有单元测试. (3认同)