如何从tortoiseSVN获取最新版本,然后使用CruiseControl.NET在msbuild中进行构建 [英] how to get latest version from tortoiseSVN and then build it in msbuild with CruiseControl.NET

查看:118
本文介绍了如何从tortoiseSVN获取最新版本,然后使用CruiseControl.NET在msbuild中进行构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在TortoiseSVN信息库中有一个asp.net解决方案.现在我已经创建了一个Test.proj文件,如下所示

Hi,

I had a one asp.net solution in TortoiseSVN repository. Now i had created one Test.proj file as given below

<project defaulttargets="Build">
	xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    
    <import project="<br" mode="hold" />      "C:\Program Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>

    <target name="GetSource">
            <message text="Checking out trunk into $(SourceDirectory)" />
            <svncheckout repositorypath="PATH TO SVN">
                LocalPath="LOCAL PATH TO FOLDER"
                UserName="USERNAME OF SVN"
                Password="PASSWORD OF SVN">
                <output taskparameter="Revision" propertyname="Revision" />
            </svncheckout>
            <message text="Have got revision: $(Revision)" />
        </target>

    <target name="Build" dependsontargets="GetSource;Clean;" />
    
    <target name="Clean">
        <!-- Clean, then rebuild entire solution -->
        <msbuild projects="D:\Projects\SOLUTIONFILENAME.sln" targets="Clean;Rebuild" /> 
    </target>

</project>



我使用了



I used

<buildargs>Test.proj /p:Configuration=Debug /p:Platform="x86"</buildargs>


ccnet.config
中的此标签 我不愿使用上述代码来获取tortoiseSVN的最新信息,但构建失败.

请告诉我这是正确的方法.如果没有告诉我正确的方法


this tag in ccnet.config
I had fallowed the above code for getting latest from tortoiseSVN but build failed.

Please tell me is this correct way. If not tell me the correct way

推荐答案

(SourceDirectory)" / > < svncheckout =" 通往SVN的路径" < 输出 =" 修订版" 属性名称 修订" / > < /svncheckout > < 消息 =" 已得到修订:
(SourceDirectory)" /> <svncheckout repositorypath="PATH TO SVN"> LocalPath="LOCAL PATH TO FOLDER" UserName="USERNAME OF SVN" Password="PASSWORD OF SVN"> <output taskparameter="Revision" propertyname="Revision" /> </svncheckout> <message text="Have got revision:


(修订)" / >> < /target > < 目标 =" Build" 依赖目标 GetSource; Clean ;" / < 目标 =" Clean" <!- 清洁,然后重建整个解决方案 -> < msbuild =" D:\ Projects \ SOLUTIONFILENAME.sln" 目标 =" ">/ > < /target > < /project >
(Revision)" /> </target> <target name="Build" dependsontargets="GetSource;Clean;" /> <target name="Clean"> <!-- Clean, then rebuild entire solution --> <msbuild projects="D:\Projects\SOLUTIONFILENAME.sln" targets="Clean;Rebuild" /> </target> </project>



我使用了



I used

<buildargs>Test.proj /p:Configuration=Debug /p:Platform="x86"</buildargs>


ccnet.config
中的此标签 我不愿使用上述代码来获取tortoiseSVN的最新信息,但构建失败.

请告诉我这是正确的方法.如果没有告诉我正确的方法


this tag in ccnet.config
I had fallowed the above code for getting latest from tortoiseSVN but build failed.

Please tell me is this correct way. If not tell me the correct way


您需要安装的是TortoiseSvn和SVN代码存储库的url(您没有显示).

TortoiseSvn作为Shell应用程序安装,可在Shell上下文菜单(Explorer,Total Commander等)上运行.您输入代码存储库URL,目标路径将是您在Shell客户端选择的(空)目录.因此,请在结帐"操作中输入此URL.如果需要,TortoiseSvn会询问您姓名/密码.

—SA
All you need is installed TortoiseSvn and url of the SVN code repository (you did not show it).

TortoiseSvn is installed as a shell application, works on the Shell context menu (Explorer, Total Commander, whatever). You enter the code repository URL, and the target path will be your (empty) directory selected with the Shell client. So, enter this URL in "Checkout" operation. TortoiseSvn will ask you the name/password if required.

—SA


这篇关于如何从tortoiseSVN获取最新版本,然后使用CruiseControl.NET在msbuild中进行构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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