Bri*_*ian 12
C#编译器是.Net Framework的一部分.如果您有任何VS2010版本,包括Express,您必须拥有.Net 4.0,因此您必须拥有命令行编译器.通常住在C:\ windows\microsoft.net\framework\v4.xxx \
此外,如果您只是在重新构建之后查看VS中的输出窗口,您将看到编译器.我有C#Express 2008,当我构建一个新项目时:
------ Build started: Project: ConsoleApplication1, Configuration: Release Any CPU ------
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:TRACE /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\ConsoleApplication1.exe /target:exe Program.cs Properties\AssemblyInfo.cs
Compile complete -- 0 errors, 0 warnings
ConsoleApplication1 -> C:\Users\brianmcn.brianmcn-7-home\AppData\Local\Temporary Projects\ConsoleApplication1\bin\Release\ConsoleApplication1.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)
哪里
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe
Run Code Online (Sandbox Code Playgroud)
是编译器.
(如果要构建.csproj,MSBuild.exe也会在那里.)
我不知道Express版本是否包含它,但您可以通过devenv
使用/Build
swicth 调用命令行来构建:http://msdn.microsoft.com/en-us/library/xee0c8y7( VS.100).aspx
无论如何,您还可以使用MSBuild构建Visual Studio解决方案.请参阅此处获取Visual Studio 2008示例:http://blog.benhall.me.uk/2008/07/msbuild-build-visual-studio-2008.html)(我猜这对Visual Studio 2010来说非常相似)
归档时间: |
|
查看次数: |
7039 次 |
最近记录: |