Solved

Compile a class in to a .dll file in Visual Studio 2008

Posted on 2008-06-17
1
2,076 Views
Last Modified: 2013-12-16
Hi,

Sorry for such lame questions, but I'm a total newbie at ASP.NET and Visual Studio.

I'm building this web site in C#/ASP.NET.

I have a class that I want to compile in to a .dll file.

I have two questions:

1) Should I create a new project just for the class or can I use my site's directory structure (namely App_Code folder) ?
If I should create a new Project, what should I choose ? "New Project -> Visual C# -> Web -> ???? here I don't know ???"

2) How do I, in Visual Studio 2008 compile the file as a .dll ? I can't figure out any option for that in the menus.

I've already googled about this, but not only I couldn't find any satisfactory answer, also I didn't find anything about Visual Studio 2008, only 2005 or younger.

Any help would be appreciated.

Warm Regards,
Mário Gamito

0
Comment
Question by:angelsofgrace2006
1 Comment
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 21801345
You need to add a new new project to your solution and select the "Class Library" project template. This will compile as a .DLL.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question