sharing web user controls across projects.

Posted by Kyle on Stack Overflow See other posts from Stack Overflow or by Kyle
Published on 2010-05-02T15:01:18Z Indexed on 2010/05/02 15:07 UTC
Read the original article Hit count: 316

I've done this using a regular .cs file that just extends System.Web.UI.UserControl and then included the assembly of the project that contains the control into other projects. I've also created .ascx files in one project then copied all ascx files from a specified folder in the properties->Build Events->Pre-build event.

Now what I want to do is a combination of those two: I want to be able to use ascx files that I build in one project, in all of my other projects but I want to include them just using assembly references rather than having to copy them to my "secondary" projects as that seems a ghetto way to accomplish what I want to do. It works yes, but it's not very elegant.

Can anyone let me know if this even possible, and if so, what the best way to approach this is?

© Stack Overflow or respective owner

Related posts about web-user-controls

Related posts about ascx