Reputation: 13571
Is there some setting in VS2K8 or some command line utility that can compile my user controls as .net assemblies? Is it even possible?
Upvotes: 1
Views: 129
Reputation: 32560
If you are referring to pure C# classes that subclass System.Web.UI.WebControls.WebControl, just create a class library project and add a reference to the project in your website.
Upvotes: 0
Reputation: 38842
Yes, use Web Deployment projects. It compiles a Web site project as a DLL.
Plug-in download: http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=0aa30ae8-c73b-4bdd-bb1b-fe697256c459&displaylang=en
How-to video: http://www.asp.net/learn/videos/video-418.aspx
General info: http://weblogs.asp.net/scottgu/archive/2008/01/28/vs-2008-web-deployment-project-support-released.aspxW
Upvotes: 0
Reputation: 13266
There is no settings provided by default to support this. But there is a hack and is explained here ASP.NET: Reusing Web User Controls and Forms
Upvotes: 2