TFS 2010 Team Build - Rename File

As part of my TFS 2010 team, I am trying to copy a configuration file from a network location to the output folder where the assembly is going.

Using xcopy as the task of the call process, I successfully got all the EXCEPT work that I want to rename the file as part of the copy. The problem is that if you specify a different destination file name, XCOPY will ask if the destination is a file or directory, for example.

XCOPY \\networkshare\configs\live.config \\networkshare\release\server.exe.config /R /Y 

leads to the fact that XCOPY asks me to press F if server.exe.config is a file or D if it is a directory. XCOPY does not seem to have a way to suppress this behavior. I tried using the basic COPY command, but Team Build just says that it does not recognize the COPY command.

Is there a way to easily rename a file as part of Team Build or use a different command line tool for this?

Greetings

+6
source share
1 answer

Just for confirmation, setting up the process as CMD.EXE and running the arguments as "/ c copy" does the trick.

+7
source

Source: https://habr.com/ru/post/886009/


All Articles