且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MSBuild与编译器

更新时间:2023-09-26 11:05:52

用C#编译器表示csc.exe吗?

如果这就是您的意思,那么cscMSBuild是完全不同的应用程序.

If that is what you mean, then csc and MSBuild are completely different applications.

MSBuild使用解决方案和项目文件来在项目中构建文件. MSBuild使用csc.exe作为其实际的编译器,但根据解决方案和项目文件(这些文件实际上是xml文件)知道在哪里可以找到程序集,引用等.

MSBuild uses a solution and project files to build the files in your project. MSBuild uses csc.exe as its actual compiler but knows where to find assemblies, references etc based on your solution and project files (these files are actually xml files).

使用csc.exe时,必须手动提供文件,引用等的路径,从而使编译更加困难.

When using csc.exe you must manually provide paths to your files, references and so on, thus making your compilation much more difficult.

MSDN MSBuild: http://msdn.microsoft.com/zh-CN /library/dd393574.aspx

MSDN MSBuild: http://msdn.microsoft.com/en-us/library/dd393574.aspx

MSDN CSC: http://msdn.microsoft.com/zh-CN /library/78f4aasd.aspx

MSDN CSC : http://msdn.microsoft.com/en-us/library/78f4aasd.aspx