✅ I cannot find a version of csc that supports C# 11
I have installed .NET 7 from https://dotnet.microsoft.com/en-us/download, however I cannot find a csc.exe file in there (C:\Program Files\dotnet).
The
Windows\Microsoft.NET\Framework\
folder does have a working csc.exe, but it doesn't support later than C# 5 (dotnet 4), which gives a message that redirects me to the github (https://github.com/dotnet/roslyn), which has only source code releases that I cannot do anything with (I think).
I just want to run csc.exe /t:exe /out:MyApplication.exe MyApplication.cs
and have a compiled .exe, without being locked to C# 5 and without getting this message:
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
There are some screenshots attached that could be of use
I have zero prior C# experience but I have done a decent bit of programming in Rust, if that helps12 Replies
Don't use CSC
What do I use then
Make a project and
dotnet run
or dotnet build
itI want to avoid visual studio all together and write my source in notepad++
I'll try
If you want to be a masochist, sure, you can try N++
But you're better off using Vim at this point lol
N++ is goated wdym
At least Vim can give you autocomplete with C# LSP
It's a glorified Notepad
Zero autocomplete, zero refactoring tools, zero code navigation, zero documentation reference, you only get syntax highlighting and even that you barely get
It's an exercise in masochism
oooh fun
x3
But, yeah, regardless of who has what fetish, use
dotnet new
to create a new project, and then run it with dotnet run
alr, massive thanks
$close
Use the /close command to mark a forum thread as answered