Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 16068 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > How to create private assembly in c# ...
Raj.Net

How to create private assembly in c#

Replies: 5 | Posted by: Raj.Net on 4/17/2012 | Category: C# Forums | Views: 2311 | Status: [Member] | Points: 10  


How to create private assembly in c#? what is assembly?


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Sunny4989
Sunny4989  
Posted on: 4/17/2012 5:19:48 AM
Level: Starter | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 4/17/2012 5:21:31 AM
Level: Silver | Status: [Member] | Points: 25

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

Sakthi.Singaravel
Sakthi.Singaravel  
Posted on: 4/17/2012 5:22:19 AM
Level: Silver | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Sunny4989
Sunny4989  
Posted on: 4/17/2012 5:27:25 AM
Level: Starter | Status: [Member] | Points: 50

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. | Reply | Alert Moderator 

Sunny4989
Sunny4989  
Posted on: 4/17/2012 7:04:58 AM
Level: Starter | Status: [Member] | Points: 25

In dotnet, Private assembly is the default assembly

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

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

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 1:53:09 PM