hi all,

My project is build successfully but when i run my program i get an error as

"A Project with an ouput type of Class Library cannot be started directly.

In order to debug this project, go to the Debugging tab under Configuration Settings in Project Properties, and set Start Action to Start External Program or Start URL. Alternately u can add a non library project to this solution that uses a reference to this project and set it as the startup project. "

I do all the settings which is given in this error but then also i m getting the same error so pls can anybody help me to solve this problem as soon as possible.

What is the solution for this?
Thanks in advance.


Regards
Guest11

What project are you trying to debug? A library or a winforms or wpf application?

I am working on winform project.

No, you're working on Class Library project, go to project properties and change Output Type to Windows Application.

hey scru thanks !
My problem is solved
Thanks alot

Regards
Guest11

Sorry
Thanks RamyMahrous
My problem is solved
Thank u once again

Regards
Guest11

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.