gpt4 book ai didi

.net - msbuild有编译器吗?

转载 作者:行者123 更新时间:2023-12-02 17:31:51 24 4
gpt4 key购买 nike

我知道Visual Studio内部使用一个名为msbuild的工具来编译C#代码。 msbuild内部是否使用csc.exe(.net框架自带的)来编译代码?或者 Visual Studio 有自己的编译器吗?

更新(与原始问题略有偏差):Powershell 使用 .net 类型。那么powershell也针对csc.exe吗?如果是,这是否意味着 powershell 不是纯脚本?

最佳答案

MSBuild使用csc.exe作为其实际的编译器,它使用解决方案和项目文件来构建项目。

还要注意,csc 是 .Net 框架的一部分。

When you build a project by using the Visual Studio IDE, you can display the csc command and its associated compiler options in the Output window. To display this information, follow the instructions in How to: View, Save, and Configure Build Log Files to change the verbosity level of the log data to Normal or Detailed. After you rebuild your project, search the Output window for csc to find the invocation of the C# compiler.

关于.net - msbuild有编译器吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25475474/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com