C
C#3mo 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
Angius3mo ago
How are you trying to run it?
No description
🐟😣
🐟😣OP3mo ago
I got this from other places because it's Chinese on my laptop. Here is mine.
No description
🐟😣
🐟😣OP3mo 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
Angius3mo ago
Why are you trying to use cs-script?
🐟😣
🐟😣OP3mo ago
I forgot.
Angius
Angius3mo ago
Well, you usually don't run your code with script-cs You run it with dotnet run
🐟😣
🐟😣OP3mo ago
Yes I got that
Angius
Angius3mo ago
Assuming it's a complete project, and not a loose .cs file
🐟😣
🐟😣OP3mo ago
So I am doing net problem It's a loose .cs file.
Angius
Angius3mo ago
Make a complete project, then dotnet new console for example Then copy-paste your loose file's contents And run with dotnet run
🐟😣
🐟😣OP3mo ago
🧐
🐟😣
🐟😣OP3mo ago
No description
Pobiega
Pobiega3mo ago
dotnet run not dotnet script dotnet run projects, not scripts
🐟😣
🐟😣OP3mo ago
omg
SleepWellPupper
SleepWellPupper3mo ago
Are you following a guide or tutorial?
🐟😣
🐟😣OP3mo ago
No
🐟😣
🐟😣OP3mo 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
🐟😣
🐟😣OP3mo ago
I mean "csharp": "dotnet run",
Angius
Angius3mo ago
$vscode
MODiX
MODiX3mo ago
Follow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
Angius
Angius3mo ago
This is all you should need
🐟😣
🐟😣OP3mo ago
Okay Thanks :catlost:
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server