I want to create a batch file for Visual Studio 2008 x64 Cross Tools Command Prompt
to do something continuesly in my PC, here is the senario.
svn update
delete some files
MSBuild MySolutiuon.sln
delete some files
xcopy somefiles
MSBuild AutomateBuildConfiguration.xml /p:Configuration=Release
xcopy some files
delete somefiles
xcopy some files
create a Zip file if it is possible // it is not neccessary
I can do most of it with simple Command Prompt and MSBuild parts
with Visual Studio Command Prompt, but as these two prompt are different I cannot complete my senario.
I have tested all command and work great for me, Give me a solution if you know what should I do.
I checked this and didn't underestand anything Thank you in advance
And for Visual Studio 2012:
I wrote a bat file using the following steps and it worked.
Make the first line of your batch file set up the VS environment:
x86_amd64
is the argument used for x64 Cross Tools Command Prompt.Once vcvarsall.bat has run, msbuild will be available in the path for the rest of the commands in your batch file.
Alternatively, if you aren't using Visual C++, you might prefer to set up the environment with this line (instead of the call to vcvarsall.bat):
For VS 2008:
For VS 2010:
For VS 2012:
For VS 2013:
For VS 2015:
For VS 2017:
Batch is now called
vc
notvs
.or better
For Visual Studio 2015:
For Visual Studio 2013:
For Visual Studio 2010, this is working great: