C
C#15mo ago
proot

✅ 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 helps
12 Replies
Angius
Angius15mo ago
Don't use CSC
proot
prootOP15mo ago
What do I use then
Angius
Angius15mo ago
Make a project and dotnet run or dotnet build it
proot
prootOP15mo ago
I want to avoid visual studio all together and write my source in notepad++ I'll try
Angius
Angius15mo ago
If you want to be a masochist, sure, you can try N++ But you're better off using Vim at this point lol
proot
prootOP15mo ago
N++ is goated wdym
Angius
Angius15mo ago
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
proot
prootOP15mo ago
oooh fun x3
Angius
Angius15mo ago
But, yeah, regardless of who has what fetish, use dotnet new to create a new project, and then run it with dotnet run
proot
prootOP15mo ago
alr, massive thanks
Denis
Denis15mo ago
$close
MODiX
MODiX15mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server