Solved

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

Posted on 2008-06-17
1
2,063 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 69

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to ToolkitScriptManager 2 28
Trouble with References... 5 22
.Net application crashing 6 20
Saveas need to save a copy 16 9
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now