C
C#•14mo ago
Stepsi

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•14mo 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
Stepsi
StepsiOP•14mo ago
Like a console app?
SinFluxx
SinFluxx•14mo ago
yeah that would do it 🙂
SinFluxx
SinFluxx•14mo ago
you should see two though:
No description
SinFluxx
SinFluxx•14mo ago
make sure you pick the top one
Stepsi
StepsiOP•14mo ago
Okay thanks I will try that
SG97
SG97•14mo ago
Iirc you can just change the project type from class library to console application
Pobiega
Pobiega•14mo ago
Sure can, and just add an entry point But making a new project is prob easier
SG97
SG97•14mo ago
True true

Did you find this page helpful?