TFSBuild MSBuild Command Line Arguments

  • Thread starter Thread starter Shikhar
  • Start date Start date
S

Shikhar

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
 
Shikhar said:
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.
 
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
 
Back
Top