如何在C#.net中使用MSBuild自动化构建过程 [英] How to automate the build process using MSBuild in C# .net
本文介绍了如何在C#.net中使用MSBuild自动化构建过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用C#在Windows应用程序中使用Windows PowerShell从PVCS获取最新代码。现在我需要通过C#.net代码自动构建检索到的项目。任何人都可以给我解决方案。在此先感谢。
I can able to Get the latest code from PVCS using Windows powershell in windows application using C#. Now the thing is i need to build that retrieved project automatically through C# .net code.Can any one give me the solution for this. Thanks in advance.
推荐答案
你是什么意思自动化?您总是应该在没有Visual Studio的情况下提供构建。幸运的是,MSBuild做到了这一切。您可以构建单独的项目或解决方案;您还可以创建一个可以构建几乎任何东西的自定义项目文件:一组解决方案,使用自定义构建步骤,第三方编译器和任何其他工具。
请请参阅:
http://msdn.microsoft.com/en- us / library / vstudio / ms164311.aspx [ ^ ]。
基本上,这就是构建现有项目或解决方案所需的全部内容。您不需要在构建计算机上安装Visual Studio:所有内容都附带(可再发行的).NET Framework安装。
这是有关API和所有内容的所有信息您可能需要:
http://msdn.microsoft.com/en -us / library / 0k6kkbsd.aspx [ ^ ]。
新年快乐!
-SA
What do you mean automate? You always should provide the build without Visual Studio. Fortunately, MSBuild does it all. You can build a separate project or a solution; you can also create a custom project file which can build nearly anything: a set of solutions, use custom build step, 3rd-party compilers and any other tools.
Please see:
http://msdn.microsoft.com/en-us/library/vstudio/ms164311.aspx[^].
Basically, this is all you need to do the build of existing projects or solutions. You don't need Visual Studio installation on the build computer: everything comes with (redistributable) .NET Framework installation.
And this is all the information on API and everything you may possibly need:
http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx[^].
Happy New Year!
—SA
该功能内置于团队系统中
或者您可以使用 cruisecontrol /
the functionality is built into team system
or you could use cruisecontrol/
您好,
能否请您提供代码从版本/标签获取PVCS的最新文件,并在vb.net中自动化构建过程。
非常紧急
谢谢......
Hello,
Could you please provide me with the code to get the latest files from PVCS based on the version/label and to automate the build process in vb.net.
Its veryyy urgent
Thank you...
这篇关于如何在C#.net中使用MSBuild自动化构建过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文