Solved

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

Posted on 2008-06-17
1
2,095 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

728 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