DEV Community

Discussion on: How to update my .NET C# compiler (csc)?

Collapse
 
mileswatson profile image
Miles Watson • Edited

You can get the latest .NET SDKs from here: dotnet.microsoft.com/download

Alternatively, you can install visual studio, which should also install the latest SDK.

I recommend using the command “dotnet build” (or run) as opposed to csc, as the dotnet project workflow makes managing dependencies easy (especially when used with Visual Studio).

Collapse
 
baenencalin profile image
Calin Baenen

I tried this (as I thought I've said in the post), but csc.exe in C:\Windows\Microsoft.NET\Framework\<version>\ won't update (as in, a new verson folder won't be added (not the actual file updating)).

How can I get the new version folder, so I can add it to my PATH?