C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

how can i create assempbly?


Posted Date: 04 Sep 2008      Posted By: kiran      Member Level: Silver     Points: 1   Responses: 4



dear friends..
i have one dll, so how can i create assembly and how can i diploy dll to assembly.. and how can i use those.. with example.. and can i dump all dlls to assembly..?
thanks in advance
kiran





Responses

Author: Priya    04 Sep 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

I have not done this before.

The following link may help you get started.
http://www.dnzone.com/ShowDetail.asp?NewsId=698

They have given step by step instructions for creating assemlies.

Good luck.



Author: D.Jeya kumar(JK)    04 Sep 2008Member Level: DiamondRating: 3 out of 53 out of 53 out of 5     Points: 3

Hi,


An Dll or exe itself an assembly. It is a deployment unit. and what you want to do the Dll?. Assembly can contain the versionning, Mainfest , meta data, etc., will be inside an assembly.

Do you want to make any assembly as Shared or public?

then you need to create a Strong name key and then you can add it in GAC and then you can use it from any application .

check the below site to create a shared or public assembly.

http://quickstart.developerfusion.co.uk/QuickStart/howto/doc/sharedname.aspx

http://softwarecommunity.intel.com/Wiki/.NET/173.htm



Regards
JK



Author: Anjan    05 Sep 2008Member Level: SilverRating: 5 out of 55 out of 55 out of 55 out of 55 out of 5     Points: 15

Hi,
Basically assembly are in two formats i.e.., dll or exe.
Assemblies are two types, private and shared assemblies.
So, you have created a dll file by default this is private assembly. If you want to make it as a shared that means that your assembly can used by other applications. In order to do that one you need to generate strong name, to generate a strong name use sn.exe.
To create shared assembly follow the steps below

1.In Microsoft VS Command prompt
sn -k key1.snk

2. After that go to AssemblyKeyInfo.cs or AssemblyKeyInfo.vb file and
add [AssemblyKeyFile("c:\key1.snk")] (in C#)
or <AssemblyKeyFile("C:\key1.snk")> (in VB.NET)
or you can go to project properties and do the same.

3. Then build your application.

4. In Microsft VS command prompt, enter gacutil -a <assemblyname>
it will directly copy to assembly folder(C:\windows\assembly)



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Encryption And Decryption?
Previous : how can i use storedprocedure in dotnet
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use