简体   繁体   中英

How to use tfs build definition to run custom msbuild file?

I have create a custom msbuild file and name it "a.msbuild" which contains a CustomTarget.

I can run it via VS command prompt with follow command:

msbuild "a.msbuild" /t:CustomTarget /p:sampleParameter='abc'

Now, I want to use tfs Build Definition get the same result with above command. How can I config it?

Why you need to use msbuild file in TFS2012. Usually,this is used in TFS2005 or TFS2008. The only situation you need to use it in TFS2012 is that your TFS server upgradted from TFS2005 or TFS2008.

For TFS2012, we use process template. Details from MSDN: Customize your build process template

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM