How to create private assembly in c# [Resolved]

Posted by Raj.Net under C# on 4/17/2012 | Points: 10 | Views : 8829 | Status : [Member] | Replies : 5
How to create private assembly in c#? what is assembly?

If it helps/directs you towards the solution,Mark This Response as Answer link
--
Rajesh



Responses

Posted by: Sunny4989 on: 4/17/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
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

Raj.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/17/2012 [Member] Starter | Points: 25

Up
0
Down
In which version of visual studio do u want to create

2005
2008
2010

------------------------------------------------
Learn throughout life

Raj.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/17/2012 [Member] Silver | Points: 25

Up
0
Down
Refer this..

http://sharpertutorials.com/creating-and-using-a-net-assembly/

Regards,
Singaravel M

Raj.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/17/2012 [Member] Silver | Points: 25

Up
0
Down
This link also may be useful for u..

http://moretoc.blogspot.in/2012/03/creating-private-assembly-using-c.html

Regards,
Singaravel M

Raj.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sunny4989 on: 4/17/2012 [Member] Starter | Points: 25

Up
0
Down
In dotnet, Private assembly is the default assembly

------------------------------------------------
Learn throughout life

Raj.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response