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