
An assembly is the building blocks of .NET Framework applications.
There are three different types of assembly available in c#.net
a) Private Assembly
b) Shared Assembly (also known as public assembly)
c) Satellite Assembly
Private Assembly:
It is used only by the single application and is stored in the application's install directory
Steps to create a private assembly
Open visual studio -> Create Project -> Select Class Library -> Give the name as "Private assembly" and add the below code.
namespace PrivateAssembly
{
public class Class1
{
public string display()
{
return "This is from Private Assembly";
}
}
}
Build this application
If you build this application in Debug mode you will find PrivateAssembly.dll in Debug folder of bin folder
or
if you build this application in release mode you will find the PrivateAssembly.dll in release folder of bin folder.
Now you can create a client application to use the above created private assembly
NOTE : don't forget to add the reference of private assembly.
------------------------------------------------
Learn throughout life