C
C#•3mo ago
Bebbesi

VS Error

Hello, guys I'm pretty new to the world of C# and I tried to create a simple C# file but when I try to execute it give me this error. Does anyone know how to fix this issue? Thanks in advance
No description
9 Replies
SinFluxx
SinFluxx•3mo ago
A Class Library is not a project type you can run on its own, you'd need to create a new project and pick a different type
Bebbesi
Bebbesi•3mo ago
Like a console app?
SinFluxx
SinFluxx•3mo ago
yeah that would do it 🙂
SinFluxx
SinFluxx•3mo ago
you should see two though:
No description
SinFluxx
SinFluxx•3mo ago
make sure you pick the top one
Bebbesi
Bebbesi•3mo ago
Okay thanks I will try that
SG97
SG97•3mo ago
Iirc you can just change the project type from class library to console application
Pobiega
Pobiega•3mo ago
Sure can, and just add an entry point But making a new project is prob easier
SG97
SG97•3mo ago
True true