Skip to content

General question regarding dotnet, msbuild and csc #70715

You must be logged in to vote

So my impression is that, under the hood, the compiler is still csc.exe, even when I'm using the higher level dotnet CLI. Is my impression correct?

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 doing dotnet.exe csc.dll.

Is it worth spending a little time getting more familiar wi…

Replies: 1 comment 3 replies

You must be logged in to vote
3 replies
@amine-aboufirass

@huoyaoyuan

@PathogenDavid

Answer selected by amine-aboufirass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants