帮助配置MSbuild [英] Help with configuring MSbuild

查看:72
本文介绍了帮助配置MSbuild的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难将当前进程移动到使用msbuild运行。


我目前的设置:


我有10个批处理文件在服务器上运行,它们可以执行以下操作:


代码开始


%ADVISOR_SERVER_HOME%\bin\applications \NdAdvisorProjectCompiler -server" ./ CH.server"
$
del / Q CH.adb
ren CH_service_0.adb CH.adb


代码结束


顾问  server home是服务器上安装的第三方应用程序。通常我们的批处理文件将运行此文件并生成一个名为  CH_service_0.adb的文件,然后重命名为ch.adb。但在所有这一切发生之前,我需要从tfs获得
的最新更改,这些更改由repo中的多个文件夹组成。然后我需要检查更改回到tfs,但似乎无法找到一种方法来做到这一点。


我很难将其转移到msbuild


解决方案

嗨Uriko,


很抱歉延迟回复。


根据您的描述,您似乎想使用msbuild与TFS进行通信。如果是这样,我恐怕答案是否定的。


msbuild只是一个构建和加载项目文件的工具,由tfs调用,类似于vs ide。您可以创建一个关于从tfs获取信息的脚本,然后使用构建事件来调用它。

构建事件
是MSBuild在构建过程中的特定阶段执行的命令。它可以在进程之前或之后调用并运行脚本。


如果我误解了,请随时告诉我。


最好的问候,


迪伦


Hi, im having some difficulty moving our current process to run with msbuild.

my current setup:

i have 10 batch files which runs on a server that perfrms the following:

code begin

%ADVISOR_SERVER_HOME%\bin\applications\NdAdvisorProjectCompiler -server "./CH.server"
del /Q CH.adb
ren CH_service_0.adb CH.adb

code end

the advisor  server home is a 3rd party application installed on the server. normally our batch file will run this file and generate a file called CH_service_0.adb and then gets renamed to ch.adb. but before all this can happen, i need to get the latest changes from tfs which is comprised of multiple folders in the repo. i then need to checkin the changes back to tfs, but cant seem to find a way to do that.

im having a hard time transfering this into msbuild

解决方案

Hi Uriko,

Sorry for delay in reply.

According to your description, it seems that you want to use msbuild to communicate with TFS. If so, I'm afraid the answer is negative.

The msbuild is just a tool to build and load project file which is called by tfs which is like vs ide. You can create a script about getting information from tfs then use a build event to call it. The build event is a command that MSBuild performs at a particular stage in the build process. It can call and run the script before or after the process.

If I misunderstand, please feel free to let me know.

Best Regards,

Dylan


这篇关于帮助配置MSbuild的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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