C
C#7mo 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
Angius7mo ago
Do you happen to just have a loose .cs file in the folder? C# works with projects, you need one
Poseidon
PoseidonOP7mo ago
Yeah
Angius
Angius7mo ago
dotnet new console in the VSCode terminal will create a new project
Poseidon
PoseidonOP7mo ago
ok i will try that
Poseidon
PoseidonOP7mo 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
Angius7mo ago
Huh Any particular reason you want to use VSCode, btw?
Poseidon
PoseidonOP7mo 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
Angius7mo 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
PoseidonOP7mo ago
ok i will try Thanks it worked
Denis
Denis7mo ago
$close
MODiX
MODiX7mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server