用命令行编译C#项目? [英] Compile C# project with Command line ?
本文介绍了用命令行编译C#项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在Visual Studio 2005下用.NET框架开发了一个C#项目.
I developed one C# project with .NET framework under Visual Studio 2005.
我想在命令行中编译它.
I want to compile it in Command line.
任何人都可以告诉我该怎么做吗?
Anyone can tell me how to do it ?
非常感谢!
推荐答案
(1)启动Visual Studio命令提示符
(2)将目录更改为包含解决方案文件(.sln)的文件夹.
(3)运行MSBuild<解决方案文件的名称>
如果您有一个".csproj",文件而不是".sln"文件文件,则可以改用MSBuild.
(1) Start a Visual Studio Command Prompt
(2) Change Directory to the folder that contains the solution file (.sln).
(3) Run MSBuild <name of solution file>
If you have a ".csproj" file instead of a ".sln" file, you can MSBuild that instead.
这篇关于用命令行编译C#项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文