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?
11 Replies
Do you happen to just have a loose
.cs
file in the folder?
C# works with projects, you need oneYeah
dotnet new console
in the VSCode terminal will create a new projectok i will try that
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
Huh
Any particular reason you want to use VSCode, btw?
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
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 workok i will try
Thanks it worked
$close
Use the /close command to mark a forum thread as answered