C# 使用bat文件在visual studio命令提示符中执行多个命令
您好,我有多个命令需要在visual studio命令提示符中执行C# 使用bat文件在visual studio命令提示符中执行多个命令,c#,visual-studio-2010,wcf,svcutil.exe,C#,Visual Studio 2010,Wcf,Svcutil.exe,您好,我有多个命令需要在visual studio命令提示符中执行 C:\iwatch\trunk\CPCE Client\mycalenderserviceclient svcutil http://localhost:1544/mycalenderservice/mycalenderservice.svc /l:C# /out:Reference.cs /config:app.config /ct:System.Collections.Generic.List`1 /t:code /n:*
C:\iwatch\trunk\CPCE Client\mycalenderserviceclient
svcutil http://localhost:1544/mycalenderservice/mycalenderservice.svc /l:C# /out:Reference.cs /config:app.config /ct:System.Collections.Generic.List`1 /t:code /n:*,iWatch.mycalenderservice/r:"C:\iwatch\trunk\CPCE Services\DataModel\obj\Debug\DataModel.dll
C:\iwatch\trunk\CPCE Client\mydatecontrolsserviceclient
svcutil http://localhost:7777/mydatecontrolsservice/mydatecontrolsservice.svc /l:C# /out:Reference.cs /config:app.config /ct:System.Collections.Generic.List`1 /t:code /n:*,iWatch.mydatecontrolsservice /r:"C:\iwatch\trunk\CPCE Services\DataModel\obj\Debug\DataModel.dll
我想在visual studio命令提示符下使用批处理文件(.bat)一次性执行这4个命令。这是在现有文件中执行的,还是您正在尝试创建批处理文件,然后从代码中执行?如果是前者,请研究方法。如果是后者,请研究将文本写入文件(
file.Create(string)
和StreamWriter.Write(string)
),然后使用前面提到的过程。开始(string)
。请不要多次发布您的问题()。如果这个问题没有引起注意,试着编辑它,让它更清楚你在问什么。