C
C#8mo ago
Poseidon

Help

I'm new to C# in VSC and i have a Problem wich is why i can't execute the Code. What am i supposed to do?
No description
11 Replies
Angius
Angius8mo ago
Do you happen to just have a loose .cs file in the folder? C# works with projects, you need one
Poseidon
PoseidonOP8mo ago
Yeah
Angius
Angius8mo ago
dotnet new console in the VSCode terminal will create a new project
Poseidon
PoseidonOP8mo ago
ok i will try that
Poseidon
PoseidonOP8mo ago
hmm... i did and it didn't work and got the same error and i created a new script in a nother folder and got these too
No description
Angius
Angius8mo ago
Huh Any particular reason you want to use VSCode, btw?
Poseidon
PoseidonOP8mo ago
So i did a game in unity and the tutorials all used VSC and since i want to learn VSC using Microsoft learn and they say that i should use VSC i use it and it's the only one i ever really heard of
Angius
Angius8mo ago
Visual Studio 2022 will be, generally, easier to use That said, let's start from scratch 1. Create any empty folder, and open any terminal there (Powershell, CMD, Git Bash, etc) 2. Create an empty project with dotnet new console 3. Open VS Code in that directory with code . This should work
Poseidon
PoseidonOP8mo ago
ok i will try Thanks it worked
Denis
Denis8mo ago
$close
MODiX
MODiX8mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server