469,271 Members | 1,063 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

TFSBuild MSBuild Command Line Arguments

Hi,

I am using TFSBuild so as to do some custom build tasks.

Now, i want to pass a label\path as input to the build script.

As far as MSBuild.exe is concerned, there exists a command line option
'/p' by which we can modify a property.

I want to do the similar thing with TFSBuild.exe (As far as command
line options are concerned, there is no such option in TFSBuild.exe).

I thought of doing it by means of some config file but so as to read
it, it has to be in a XML file and developers do not have access to
the build server machine.

Can anyone please help me out in this.

Regards,
Shreshth

May 9 '07 #1
2 11213
"Shikhar" wrote:
I am using TFSBuild so as to do some custom build tasks.

Now, i want to pass a label\path as input to the build script.

As far as MSBuild.exe is concerned, there exists a command line option
'/p' by which we can modify a property.
I don't think you can pass any parameters into TFSBuild from the command
line, as I was trying to do something similar a while back. If you want to
pass in properties then you have to do it using the TFS build's response file
(TFSBuild.rsp) but I don't think you can even specify a different response
file to use.
May 9 '07 #2
Thanks for the reply.

But my problem is that i am a having a few folders in the drop
location and i want to deploy one of them on my deployment server.

Now for this, i need to have some third party app (may be a website)
where i can show the list of folders and ask the person to deploy one
if them.
In this case, there is no scope of check-in or check-out.

One possible approach i was thinking was to update some config file on
drop server from my website and then read it again from TFSBuil.exe
but it does not seem to be good approach.

Can you please suggess some better approach.

Otherwsie, is it possible thatby means of EXEC command of TfsBuild.exe
we can invoke cmd.exe of local machine. From there i can show the list
to user and he can choose of them to deploy.

Thanks.

Regards,
Shikhar

On May 9, 3:51 pm, Leon Mayne <LeonMa...@discussions.microsoft.com>
wrote:
"Shikhar" wrote:
I am usingTFSBuildso as to do some custom build tasks.
Now, i want to pass a label\path as input to the build script.
As far asMSBuild.exe is concerned, there exists a command line option
'/p' by which we can modify a property.

I don't think you can pass any parameters intoTFSBuildfrom the command
line, as I was trying to do something similar a while back. If you want to
pass in properties then you have to do it using the TFS build's response file
(TFSBuild.rsp) but I don't think you can even specify a different response
file to use.

May 9 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Uma Abhyankar | last post: by
8 posts views Thread by Frank Rizzo | last post: by
reply views Thread by ME | last post: by
1 post views Thread by Divided Sky | last post: by
reply views Thread by sl | last post: by
reply views Thread by Shikhar | last post: by
7 posts views Thread by shapper | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.