C
C#2w ago
matei

✅ I cannot run my code

The run button is just grayed out
No description
9 Replies
ero
ero2w ago
i presume you simply don't have a solution or project loaded
matei
mateiOP2w ago
sorry i just dont even know what that means mind explaining briefly?
ero
ero2w ago
c# is project-based. you need to create or open a project or solution (a collection of projects) this would happen automatically if you created the project directly through visual studio
matei
mateiOP2w ago
oh okay i pressed create new project, then hit a preset that this guy that im watching told me to put
ero
ero2w ago
somewhere along the way you closed visual studio and did not open the solution again
matei
mateiOP2w ago
and the copilot thing is saying that the code is correct oh alright, thanks a lot im just really new to this , it probbably was a obvious mistake
ero
ero2w ago
it's the .sln file
matei
mateiOP2w ago
i also needed a uptade apparently just wrote the code again and it worked, thanks!
MODiX
MODiX2w ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?