简体   繁体   English

升级到TFS 2012后构建旧产品补丁的建议

[英]Suggestions for building legacy product patches after upgrading to TFS 2012

We're looking at upgrading our TFS 2010 server to TFS 2012. As I understand it, this requires upgrading the build servers to TFS 2012 too. 我们正在考虑将TFS 2010服务器升级到TFS2012。据我了解,这也需要将构建服务器也升级到TFS 2012。 Unfortunately it seems that installing the TFS 2012 build server causes .NET 4.5 to be installed. 不幸的是,安装TFS 2012构建服务器似乎会导致安装.NET 4.5。 .NET 4.5 is an in-place upgrade of .NET 4.0 and hence all .NET 4.0 components, including the C# compiler, are replaced when it is installed. .NET 4.5是.NET 4.0的就地升级,因此,所有.NET 4.0组件(包括C#编译器)在安装时都会被替换。 I do not wish to do this on the build server that is responsible for building patches of our established legacy products - we don't have the resources to fully test that building with the .NET 4.5 compiler/framework will not cause an issues when up until now they have always been built with .NET 4.0 components, and I've seen a number of posts online suggesting that moving from .NET 4.0 to 4.5 can cause compilations to break. 我不希望在负责构建已建立的旧产品补丁的构建服务器上执行此操作-我们没有足够的资源来全面测试使用.NET 4.5编译器/框架进行构建时,不会引起问题到现在为止,它们始终是使用.NET 4.0组件构建的,并且我在网上看到许多帖子暗示,从.NET 4.0迁移到4.5可能会导致编译中断。 At this stage I only see two options: a) Maintain a separate TFS 2010 system just for building the legacy product. 在此阶段,我仅看到两个选项:a)维护一个单独的TFS 2010系统,仅用于构建旧产品。 b) Don't use a build server to build the patches (execute msbuild manually against the build definition from a machine with just .NET 4.0/VS 2010 - assuming that's possible?) b)不要使用构建服务器来构建补丁(从仅具有.NET 4.0 / VS 2010的计算机上对构建定义手动执行msbuild-假设有可能?)

Any suggestions welcome! 任何建议欢迎!

(Edit: did a little reading and I don't see any straightforward way of executing build from a build definition/build process file from a command-line: yes there's tfsbuild but that just tells TFS build server to build it. It might be somehow possible using Windows Workflow foundation command line tools but it's hard to see how. More likely I'd have to rewrite the build script as some sort of batch file that calls msbuild to build the solution then calls other tools as needed to build/sign the installer and copy to the required location.) (编辑:做了一些阅读,我看不到从命令行从构建定义/构建过程文件执行构建的任何直接方法:是的,有tfsbuild,但这只是告诉TFS构建服务器进行构建。可能是可以使用Windows Workflow Foundation命令行工具以某种方式实现,但很难做到。我更有可能不得不将构建脚本重写为某种批处理文件,该文件调用msbuild来构建解决方案,然后根据需要调用其他工具来进行构建/签名安装程序并复制到所需位置。)

As of TFS 2012 update 2 you can continue to use TFS 2010 build agents . 从TFS 2012更新2开始,您可以继续使用TFS 2010构建代理 So you can continue to build your .net 4.0 code without worrying about compatibility with 4.5 因此,您可以继续构建.net 4.0代码,而不必担心与4.5的兼容性。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM