English 中文(简体)
• 如何为视觉演播室制作巴奇档案
原标题:How to create a Batch File for Visual Studio Command Prompt

我想为2008年地球静止演播室×64 十字工具指挥部Prompt制作一个批量文档,以便在我的PC中继续做一些事情,这里是sen。

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

最佳回答

• first头一线,建立家庭环境:

call "C:Program FilesMicrosoft Visual Studio 2008VCvcvarsall.bat" x86_amd64
svn update
delete some files
MSBuild MySolutiuon.sln
... more commands ...

x86_amd64> 是用于X64 十字工具指挥部的论证。

弹.一经洗手,就会在你批量档案中向其他指挥机关提供。

或者,如果你是使用视像C++的拖车,你可能更愿意按照这一条线建立环境(而不是呼吁挥发):

2008年家庭调查:

call "%vs90comntools%vsvars32.bat"

2010年家庭调查:

call "%vs100comntools%vsvars32.bat"

《2012年家庭调查》:

call "%vs110comntools%vsvars32.bat"

For VS2013:

call "%vs120comntools%vsvars32.bat"

2008年5月30日

call "%vs140comntools%vsvars32.bat"

页: 1

现在称为<代码>vc,而不是vs

call "%vs140comntools%....VCAuxiliaryBuildvcvars32.bat"

call "%vs140comntools%VsDevCmd.bat"
问题回答

视力演播室<2015>:

call "C:Program Files (x86)Microsoft Visual Studio 14.0VCvcvarsall.bat" x86_amd64

视力演播室2013:

call "C:Program Files (x86)Microsoft Visual Studio 12.0VCvcvarsall.bat" x86_amd64

对2010年视觉演播室来说,这项工作非常出色:

call "C:Program Files (x86)Microsoft Visual Studio 10.0VCvcvarsall.bat" x86

call "C:Program Files (x86)Microsoft Visual Studio2019CommunityVCAuxiliaryBuildvcvarsall.bat" x86_amd64

供2012年视觉演播室使用:

call "C:Program Files (x86)Microsoft Visual Studio 11.0VCvcvarsall.bat" x86_amd64

我用以下步骤撰写了一批文件,并做了工作。

call "C:Program Files (x86)Microsoft Visual Studio 12.0VCvcvarsall.bat" x86_amd64
echo call complete
pause
cd C:	fs.sbdinc.com
tf get $/MAC_MBA/CoreApplicationAndReports/Main/Application/Solution /recursive
echo get complete
pause
cd C:	fsCoreApplicationAndReportsMainApplicationSolution
msbuild
echo build complete
pause
devenv mba.sln
echo ide launch complete
pause

Try below batch file toître/Nunit test for C# test.

@echo off
echo Run the CMD(Command Prompt) Program.
echo.
pause
cls
echo Target Framwork
CD C:WindowsMicrosoft.NETFramework64v4.0.30319
echo  Project Path 
msbuild  "C:GitElementsCloud.TestsSourceElementsCloud.Tests.sln"/p:configuration=debug
pause
echo  Project Dll path  and Execute tests
cd C:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDECommonExtensionsMicrosoftTestWindow
vstest.console.exe "C:GitElementsCloud.TestsSourceSelenium.TestsinDebug
et471Selenium.Tests.dll" /Tests:Test1,Test2,Test3
echo. 
PAUSE
EXIT




相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签