views:

92

answers:

3

Is there some setting in VS2K8 or some command line utility that can compile my user controls as .net assemblies? Is it even possible?

A: 

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

GoodEnough
Could you elaborate on that please? Maybe some links?
Perpetualcoder
This is great thanks!
Perpetualcoder
+2  A: 

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

Ramesh
A: 

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.

Ishmael