General question regarding dotnet, msbuild and csc #70715
-
My current understanding of how the .NET 6.0 CLI builds a C# assembly is as follows:
So my impression is that, under the hood, the compiler is still |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Strictly speaking ... it's almost correct. There are typically two copies of compilers installed. One is at
Neither. The code doing the actual compilation work is in |
Beta Was this translation helpful? Give feedback.
Strictly speaking ... it's almost correct.
There are typically two copies of compilers installed. One is at
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\Roslyn
. As you can see, this copy is used by Visual Studio, and contains .NET Framework entry points.The other one is at
C:\Program Files\dotnet\sdk\6.0.300\Roslyn\bincore
. This one is used from command line. It contains .NET Core entry points. When executing, it's actually doingdotnet.exe csc.dll
.