简体   繁体   English

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

[英]Should I install an SDK on the build server?

(this is a .net build server) (这是一个.net构建服务器)

I'm getting the following error: 我收到以下错误:

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.

This is because we are using a component that requires LIC.exe to compile. 这是因为我们使用的是需要LIC.exe编译的组件。

now I can solve the problem by installing the latest Microsoft SDK on the build server, but I thought the whole point of a build server is to not have your dev tools installed on it. 现在我可以通过构建服务器上安装微软最新的SDK解决这个问题,但我认为构建服务器的整点是不是有它安装在您的开发工具 I think I can probably solve this but not after some work figuring some things out (like these guys did) 我想我可以解决这个问题,但是在做了一些事情之后不会解决这些问题(就像这些人一样)

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

should I install the SDK? 我应该安装SDK吗? and more importantly: 更重要的是:

What is the primary purpose of a build server? 构建服务器的主要目的是什么?

The primary purpose of the build server is to build code. 构建服务器的主要目的是构建代码。 Anything that is needed to build the code needs to be on the build server. 构建代码所需的任何内容都需要在构建服务器上。

Your build server has to have all of your build/dev tools/libraries on it. 您的构建服务器必须包含所有构建/开发工具/库。 That's how it's going to do the build. 这就是构建它的方式。

So yes, install the SDK. 所以是的,安装SDK。

The best way to do it would be to store everything needed to make builds in source control. 最好的方法是存储在源代码管理中进行构建所需的所有内容。 When doing that you don't need to go through all your build servers when your build chain is updated, it will happen automatically. 执行此操作时,您不需要在更新构建链时浏览所有构建服务器,它将自动执行。 An added advantage is that you can go back in time and still be able to get everything built without needing to delve into all your old CDs to find the tools you need to build old versions of your product. 另一个优点是,您可以回到过去,并且仍然能够构建所有内容,而无需深入研究所有旧CD,以找到构建旧版本产品所需的工具。

However, this might not be possible for all build tools. 但是,对于所有构建工具而言,这可能是不可能的。 For example we tried to do it with Visual Studio 2005, but we got weird intermittent pdb errors from mspdbsrv when building from a non-installed tool chain. 例如,我们尝试使用Visual Studio 2005,但是当从未安装的工具链构建时,我们从mspdbsrv获得了奇怪的间歇性pdb错误。 So unfortunately all our build servers all have VS2005 installed (but not the PS3 tool chain, which is really really nice since it's updated quite often). 所以很遗憾我们所有的构建服务器都安装了VS2005(但不是PS3工具链,这非常好,因为它经常更新)。

Regards, 问候,

Sebastiaan Sebastiaan

I would say a build server needs to have everything needed to build; 我会说构建服务器需要拥有构建所需的一切; a TEST server may not have any SDKs installed. TEST服务器可能没有安装任何SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该安装哪个版本的VS以允许在构建服务器上进行单元测试? - Which version of VS should I install to allow unit testing on the build server? 我应该使用调试构建可执行文件还是发布构建可执行文件来安装Windows服务? - Should I use debug build executable or release build executable to install a windows service? 安装 .NET SDK 5.0 后,我还应该安装 .NET Core 吗? - After Installing .NET SDK 5.0, should I also install .NET Core? 在TFS Build Server上安装MSI - install msi on TFS Build Server 我应该安装Windows 8.1吗? - Should I install windows 8.1 ? 在安装5.0 SDK之前,不会加载Silverlight 4.0项目,但由于缺少4.0文件而无法构建 - Silverlight 4.0 project won't load until I install the 5.0 SDK but won't build because it is missing 4.0 files 我应该使用什么C#模板为XNA游戏构建服务器? - What C# template should I use to build a server for an XNA game? 在构建服务器上使用Expression Encoder 4 SDK记录Selenium测试执行失败 - Recording Selenium test execution with Expression Encoder 4 SDK fails on build server 我应该先构建一个字符串然后写入文件吗? - Should I build a string first and then write to file? 我应该围绕这个实体构建包装器吗? - Should I build a wrapper around this entity?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM