separate classes

hi,
I want to separate group of classes to different library (dll) from main file, how can i do it?
thanks
[116 byte] By [gibic] at [2007-12-16]
# 1

You need to add a class library to your solution and then add a reference to that library.

To do this, do the following:

1. Open your solution
2. Choose File -> Add -> New Project
3. Under the Visual C# node, choose the Windows node and select Class Library
4. Enter a name for the library and click OK
5. In Solution Explorer, right-click the References node under your orginal Windows Application project and choose Add Reference
6. Select the Projects tab and select the new Class Library you created
7. Click OK

You can now add classes to the Class Library project and use them within the Windows Application.

DavidM.Kean at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 2
Can I determine what will complie as dll library and what will application using namespace in same project?
gibic at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...
# 3
Visual Studio uses Projects as the unit of compilation, hence all files within a project would get compiled into either an Exe or Dll. Hence you use multiple projects to seperate out classes that need to be in a library vs classes that need to be in an application.

Regards,
Saurabh Nandu
www.MasterCSharp.com
www.AksTech.com

SaurabhNandu at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# General...