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

   IT问题网   2020-06-27 00:00:00

问 题

嗨,



我在tortoisesvn存储库中有一个asp.net解决方案。现在我创建了一个test.proj文件,如下所示

 lt;  项目    defaulttargets   ="  构建" gt;  
xmlns ="http://schemas.microsoft的.com /开发者/的msbuild / 2003\" gt;

lt; import 项目 =" lt; br" mode =" 保持" / gt; "c:\program files \ msbuild \ msbuildcommunitytasks \ msbuild.community.tasks.targets"/gt;

lt; target 名称 =" getsource" gt;
lt; 消息 text =" 将主干检入$(sourcedirectory)" / gt;
lt; svncheckout repositorypath =" path to svn" gt;
localpath ="本地路径到文件夹"
username ="svn的用户名"
密码="svn的密码"gt;
lt; output taskparameter =" 修订版" propertyname =" 修订版" / gt;
lt; / svncheckout gt;
lt; 消息 text =" 已获得修订:$(修订版)" / gt;
lt ; / target gt;

lt; target 名称 =" 构建" dependsontargets =" getsource; clean;" / gt;

lt; target name =" 清除" gt;
lt;! - 清理,然后重建整个解决方案 - gt;
lt; msbuild 项目 =" d:\projects \solutionfilename.sln" 目标 =" 清理;重建" / gt;
lt; / target gt;

lt; / project gt;




我使用
 lt;   buildargs  gt;  test.proj / p:configuration = debug / p:platform ="x86"lt;   / buildargs  gt;  


此标记位于 ccnet.config

我已经使用上面的代码来获取最新的tortoisesvn但是构建失败了。



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

解决方案

(sourcedirectory)" / gt;
lt; svncheckout repositorypath =" 路径到svn" gt;
localpath ="local path要归档"
username ="svn的用户名"
密码="svn的密码"gt;
lt; 输出 taskparameter =" 修订版" propertyname =" 修订版" / gt;
lt; / svncheckout gt;
lt; 消息 text =" 已修订:

(修订版) " / gt;
lt; / target gt;

lt; target name = " 构建" 依赖目标 =" getsource;清洁;" / gt;

lt; target name =" 清除" gt;
lt;! - 清理,然后重建整个解决方案 - gt;
lt; msbuild projects =" d:\projects \solutionfilename.sln" targets =" 清洁;重建" / gt;
lt; / target gt;

lt; / project gt;



我使用
 lt;   buildargs  gt;  test.proj / p:con figuration = debug / p:platform ="x86"lt;   / buildargs  gt;  


此标记在 ccnet.config

我已经从上面获取了上面的代码来获取最新的tortoisesvn但是构建失败了。



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

你只需要安装tortoisesvn和svn代码库的url(你没有显示它)。



tortoisesvn作为shell应用程序安装,适用于shell上下文菜单(explorer,total commander,无论如何)。输入代码存储库url,目标路径将是使用shell客户端选择的(空)目录。因此,请在"结帐"操作中输入此url。如果需要,tortoisesvn会问你姓名/密码。



-sa

标签:如何获取获得最新版本然后使用构建



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

请再帮忙,善良的人(Please help again, kind people)

problem hi all, so frustrated. i did two days'' researc ...

如何使用c#,net动态地在textarea中添加文本?(how to add text in textarea dynamically using c#,net)

problem string query = string.empty; query = "select mess ...

在Visual Studio 2010中创建Crystal Reports(Creating Crystal Reports in Visual Studio 2010)

problem im creating crystal reports using visual studio 2 ...

控制以填充数据并执行回发(control to fill the data and perform postback)

problem hi, is there any control to fill the data from da ...

System()vs CreateProcess()vs ShellExecute()(System() vs CreateProcess() vs ShellExecute())

problem here''s one for everyone, i''m running a batch fi ...

将TCL代码转换为C ++ ...(Convert a TCL code to C++...)

problem for {set i 128} {$ilt;256} {incr i 1} { eval lut ...

如何从二进制文件中读取浮点值(How Read Float value from Binary File)

problem hi. i do want to read float value from binary fi ...

使用.bak文件还原数据库(Restore Database using.bak file)

problem good evening everybody, please say how to restor ...

在gridview中显示总和(Show sum In gridview)

problem my gridview has data which looks like below (for ...

Ajax客户端脚本错误(Ajax Client side script error)

problem if (typeof(sys) === #39;undefined#39; ...

如何在UP和DOWN键进行编码(How to code at the UP and DOWN key)

problem i want to move picture box up and down when a use ...

如何计算excel 2003中的时间平均值(how to calculate time averge in excel 2003)

problem hii to all. if any body knows how to calculateave ...

控制相关问题(Control related issue)

problem respected sir, i have a page in which i m gettin ...

在运行时动态绘制div(draw div dynamically at runtime)

problem hiii all, i have a page which i draw all its attr ...

转换数据库值(Convert a databse value)

problem i have a table one field is price and ...

如何使单元格的内容可见为false(How do i make the content of a cell visible false)

problem how do i make the content of a cell visible false ...

qtwebkit并连接cpp和javascript(qtwebkit and connect cpp and javascript)

problem hi to all i am using qwebkit i have a cpp object ...

response.flush&到Response.End(problem with response.flush & response.end)

problem hello everybody, i have used response.flush() wi ...

ShellExecute()不执行(ShellExecute() Not Executing)

problem i''m running a batch file from c++ code.when i ru ...

Radion Button使用Javascript隐藏/可见(Radion Button Hide/Visible Using Javascript)

problem i want hide/visible radio button using javascript ...