VS C#应用程序批量构建

VS C#应用程序批量构建,c#,visual-studio,batch-processing,C#,Visual Studio,Batch Processing,在VS2008中使用批生成时,我可以在其输出窗口中看到csc.exe batch命令语句。 然后我将该字符串复制到解决方案主目录中的CMD中 它工作,但保持沉默。没有错误,没有警告,只有“Microsoft保留所有权利”,并且没有生成exe模块 怎么了?怎么了 C:\SatServer>C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe/noconfig/nowarn:17011702/platform:x 86/错误报告:提示/警告:4/定义:调试;

在VS2008中使用批生成时,我可以在其输出窗口中看到csc.exe batch命令语句。 然后我将该字符串复制到解决方案主目录中的CMD中 它工作,但保持沉默。没有错误,没有警告,只有“Microsoft保留所有权利”,并且没有生成exe模块

怎么了?怎么了

C:\SatServer>C:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe/noconfig/nowarn:17011702/platform:x 86/错误报告:提示/警告:4/定义:调试;跟踪/引用:bin\Debug\CommonClass.dll/引用:b 在\Debug\DBManager.dll/reference:bin\Debug\Microsoft.Data.ConnectionUI.Dialog.dll/reference:bin\De中 bug\Microsoft.Data.ConnectionUI.dll/reference:bin\Debug\State.dll/reference:c:\WINDOWS\Microsoft.N ET\Framework\v2.0.50727\System.configuration.dll/reference:“C:\Program Files\reference Assembly\M icrosoft\Framework\v3.5\System.Core.dll”/reference:“C:\Program Files\reference Assembly\Microsoft \Framework\v3.5\System.Data.DataSetExtensions.dll”/参考:c:\WINDOWS\Microsoft.NET\Framework\v2。 0.50727\System.Data.dll/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Deployment.d ll/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll/reference:c:\WINDOWS\Microso ft.NET\Framework\v2.0.50727\System.Drawing.dll/参考:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50 727\System.Management.dll/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.WINDOWS.Fo rms.dll/reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll/reference:c:\Progr am Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll“/debug+/debug:full/fil ealign:512/optimize-/out:obj\Debug\SatServer.exe/resource:obj\Debug\SatServer.Cli.resources/resources urce:obj\Debug\SatServer.ServerForm.resources/resource:obj\Debug\SatServer.Properties.resources.res 资源/资源:SQLCommands\u Old\u SelectExamQuestions.sql、SatServer.SQLCommands.\u Old\u SelectExamQuest ions.sql/resource:SQLCommands\InsertExam.sql,SatServer.SQLCommands.InsertExam.sql/resource:SQLComm ands\InsertExamQuestionListDetails.sql,SatServer.SQLCommands.InsertExamQuestionListDetails.sql/reso urce:SQLCommands\InsertExamQuestionList.sql,SatServer.SQLCommands.InsertExamQuestionList.sql/resource ce:SQLCommands\GetExamId.sql,SatServer.SQLCommands.GetExamId.sql/resource:SQLCommands\GetExamQuesti onListId.sql,SatServer.SQLCommands.GetExamQuestionListId.sql/resource:SQLCommands\SelectExamQuestio ns.sql,SatServer.SQLCommands.SelectExamQuestions.sql/resource:Activation\Activation.exe,SatServer.A Activation.Activation.exe/target:winexe/win32icon:ikey.ico Cli.cs Cli.Designer.cs LOCALCLASSBOX\Leg al.cs LOCALCLASSBOX\LocalBox.cs ServerCommunicator.cs ServerForm.cs ServerForm.Designer.cs Program.c s Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs

结果: Microsoft编译器(R)Visual C#2008版本3.5.30729.1 适用于Microsoft(R).NET Framework 3.5版
(C) 微软公司。。保留所有权利

您的CMD中到底有什么?您在哪里查找可执行文件?命令行说它应该放在“obj\Debug\SatServer.exe”中。它将不在当前目录中。