Visual Studio 2008 C#

thesadguy

Active Member
Joined
Nov 29, 2008
Messages
70
Reaction score
0
So last night, the project I have been working on was still working fine: I could debug etc, and all was good.

This morning, when I click "Debug", then Visual Studio 2008 gives me an error saying "a project with an output type of class libarary cannot be started directly."

How / Why did this happen? I didn't changed anything to do with the Main() or anything like that (not intentionally anyway).
 
Never mind...

Somehow the startup project got changed / removed.

Just had to find the entry point for my program and add it as the startup project.
 
The startup project is whichever one is selected in Solution Explorere, very annoying 'feature'.

Just be fore-warned that you'll have the same problem when running and ASP.Net projects. The startup page will be whicever one is selected, not default.aspx
 
The startup project is whichever one is selected in Solution Explorere, very annoying 'feature'.

Just be fore-warned that you'll have the same problem when running and ASP.Net projects. The startup page will be whicever one is selected, not default.aspx

Argh!

Thanks for the heads up... At least now I know wtf happened :o
 
Top
Sign up to the MyBroadband newsletter
X