C
C#5d ago
🐟😣

✅ My program can’t be run.

I got a problem when I run my program. .NET SDK version: 8.0.403 Mac OS X OS version: 14.5
No description
23 Replies
Angius
Angius5d ago
How are you trying to run it?
No description
🐟😣
🐟😣5d ago
I got this from other places because it's Chinese on my laptop. Here is mine.
No description
🐟😣
🐟😣5d ago
:catlost: Before, I try to solve the problem that my program doesn't run with dotnet script. I installed cs-script, and it always told me "cs-script is busy". I think that it may be because I did not input anything and it was waiting for me. But I couldn't type anything there.
Angius
Angius5d ago
Why are you trying to use cs-script?
🐟😣
🐟😣5d ago
I forgot.
Angius
Angius5d ago
Well, you usually don't run your code with script-cs You run it with dotnet run
🐟😣
🐟😣5d ago
Yes I got that
Angius
Angius5d ago
Assuming it's a complete project, and not a loose .cs file
🐟😣
🐟😣5d ago
So I am doing net problem It's a loose .cs file.
Angius
Angius5d ago
Make a complete project, then dotnet new console for example Then copy-paste your loose file's contents And run with dotnet run
🐟😣
🐟😣5d ago
🧐
🐟😣
🐟😣5d ago
No description
Pobiega
Pobiega5d ago
dotnet run not dotnet script dotnet run projects, not scripts
🐟😣
🐟😣5d ago
omg
SleepWellPupper
Are you following a guide or tutorial?
🐟😣
🐟😣5d ago
No
🐟😣
🐟😣5d ago
I change something in settings.json of Code Runner. The abouve is before the change. So I need to change the following to "csharp": "dotnet script", ?
No description
🐟😣
🐟😣5d ago
I mean "csharp": "dotnet run",
Angius
Angius5d ago
$vscode
MODiX
MODiX5d ago
Follow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
Angius
Angius5d ago
This is all you should need
🐟😣
🐟😣5d ago
Okay Thanks :catlost:
Unknown User
Unknown User5d ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server