在哪里写msbuild文件? [英] Where to write msbuild file?

查看:73
本文介绍了在哪里写msbuild文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI每一个人都是krishna



我是.net develpoment和msbuild以及visual studio的新手。



现在我有一个要求。



i想要为构建.net应用程序编写构建自动化。



我们将使用jenkins a ci。



现在我应该在哪里编写msbuild脚本..



i需要在记事本中编写脚本,我想在解决方案文件中添加tfs吗?



我要写的地方





我的尝试:



i在记事本中写了msbuild脚本。我不知道放在哪里。

解决方案

作为 Richard MacCutchan [ ^ 在问题的评论中提到,您可以随时放置它。这取决于你编写脚本的menthod。

如果你编写了如下脚本:

  rem   脚本 应该   已放置 内部    main  目录   解决方案 

set buildtool =%windir% \ Microsoftoft.NET\Framework\v3.5 \ MSBuild。 exe
set solution = theNameOfYourSolution。 sln

%buildtool %% solution% / p:Configuration = Debug
%buildtool %% solution%/ p:Configuration = Release



你必须将它放在解决方案的主目录中。 / BLOCKQUOTE>

HI every one this is krishna

iam new to .net develpoment and msbuild and visual studio.
.
now i have a one requirement.

i want write a build automation for building .net applications.

we are going to use jenkins a ci .

now i have where should i want to write msbuild script..

i need to write script in notepad and i want to add in tfs along with solution file?

where i want to write


What I have tried:

i wrote msbuild script in note pad. i dont know where to place it.

解决方案

As Richard MacCutchan[^] mentioned in the comment to the question, you can place it whenever you want. It depends on the menthod you wrote a script.
If you wrote a script as follow:

rem this script should be placed inside the main directory of solution

set buildtool=%windir%\Microsoft.NET\Framework\v3.5\MSBuild.exe
set solution=theNameOfYourSolution.sln

%buildtool% %solution% /p:Configuration=Debug
%buildtool% %solution% /p:Configuration=Release


you have to place it in the main directory of solution.


这篇关于在哪里写msbuild文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆