C
C#10mo ago
Mia

✅ 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
Angius10mo ago
Don't use CSC
Mia
Mia10mo ago
What do I use then
Angius
Angius10mo ago
Make a project and dotnet run or dotnet build it
Mia
Mia10mo ago
I want to avoid visual studio all together and write my source in notepad++ I'll try
Angius
Angius10mo ago
If you want to be a masochist, sure, you can try N++ But you're better off using Vim at this point lol
Mia
Mia10mo ago
N++ is goated wdym
Angius
Angius10mo 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
Mia
Mia10mo ago
oooh fun x3
Angius
Angius10mo ago
But, yeah, regardless of who has what fetish, use dotnet new to create a new project, and then run it with dotnet run
Mia
Mia10mo ago
alr, massive thanks
Denis
Denis10mo ago
$close
MODiX
MODiX10mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server
More Posts
❔ Azure data studio connection string.i'm using linux so i use Azure data studio as sqlserver management studio. but i can't know the conn❔ Want to try predict the ballon d'or but not really sure where to startI would like to make a program that uses statistics to try calculate the ballon d'or winner, i wantRole based Authorize Blazor Server + ClientI am stuck trying to use the @attribute [Authorize(Roles = "Admin")] in my blazor component on clien❔ Trying to maximize the amount of messages my worker can process while using Channels.I am working with AWS SQS queue and using a channel to write messages to and read from. This is how❔ Connecting to a local DBPackages Used: ``` Dapper v2.0.151 Microsoft.Extensions.Configuration.Abstractions 7.0.0 System.Data✅ Synchronize text box to calculate the average of the next 5 text boxesI have a WPF project where I want to calculate the average of 5 textboxes. I want to synchronize the❔ Blazor State Container Prompt, Standardized for all PagesI have a simple state container in blazor. The goal is to provide the AppEntity value: ```public cl❔ Please help with a ''simple'' cash-register simulator.I need my program to be able to tell how many 50 cents it will give back to the customer. For exampl❔ Sharepoint REST API 401 ErrorI'm using MSAL Node get token interactive in my electron to get an access token that will be appende❔ Can anyone help explain what it's talking about?Is it trying to get me to copy the array value from arrayOne to arrayTwo? If so, how? It never taugh