In Visual Studio .NET there is always an assembly whether you choose a class library
project or an exe project. Now, let’s start some practical work.
- Start Visual Studio 2005
- Choose a new C# project [File -> New Project]
- From template pane choose Class Library Template
- Set the Location : F:myWrittingsCSharpBookSource Codes
- Name : privateAssembly
- In Solution explorer change class name from Class1 to mathclass
- Now right click on mathclass and click on view code
- Change the name of namespace from privateAssembly to CSharp.AStepAhead.privateAssemby
- After writing codes of the assembly, now you have to provide some information to
your assembly as follows:
Check full code of private
using System.Runtime.InteropServices; // General Information about an assembly is
controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyDescription(“This is an Example of Book: C#-A Step Ahead
[assembly: AssemblyConfiguration(“Free I.T. Education Series – A Step Ahead”)]
[assembly: AssemblyProduct(“A Step Ahead Series”)]
[assembly: AssemblyCopyright(“Copyright © A Step Ahead 2007”)]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
// The following GUID is for the ID of the typelib if this project is exposed to COM
and company who had developed it.
For more detail check table assembly attributes.