Saturday, December 19, 2009

Make your Class Lib project as Web Application Project

Hi All,

In one of my requirement i have to put my user control to Class Lib project. so i have digs a net and found the solution with something unbelievable.to achieve this please follow given steps,

1) Unload Class Lib project.
2) Edit Class Lib project and add following under very first line of ProjectGuid element

{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}

3) Once done with above Reload the project and Finish..!!

now when you select 'Add New Item' you will get all required web files there. once you rebuild it will available with single class assembly dll.


Happy Coding :-)

No comments:

Post a Comment