C
C#2y ago
Linux

❔ Output Type cannot be started directly problem

I cant run my project is there anyone to help me?
11 Replies
phaseshift
phaseshift2y ago
You can't run a library You need e.g. a console project to run Or a web server, or a gui app
Linux
LinuxOP2y ago
that is weird because before that did not happen after i origanize my code than it happen
phaseshift
phaseshift2y ago
How many projects do you have in your solution?
Linux
LinuxOP2y ago
3 porgram.cs inclusive
phaseshift
phaseshift2y ago
.cs file are not projects
Linux
LinuxOP2y ago
1 project
ero
ero2y ago
they probably just chose the wrong project type just add <OutputType>Exe</OutputType> in the project file
phaseshift
phaseshift2y ago
So you only have one project, it must be the wrong type. I guess you manually created the program.cs?
Linux
LinuxOP2y ago
no i had program cs before that where
Buddy
Buddy2y ago
*.csproj is the project file *.sln is the solution file
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server