Understanding Assemblies in VB.NET

Assemblies can be thought of exe files with some additional information about themselves. The information about themselves in provided in the manifest of the assembly. This helps you to get information about an assembly even programmatically and then load a particular assembly dynamically based on the information you get about an assembly.

Namespaces and classes for this purpose are available in .Net. The System.Reflection namespace has a class called Assembly which can be used to get information about an assembly programmatically.

If you want to use a particular assembly in another program, you can do so by simply copying that assembly to the bin folder of that application. In case you need to share an application with other programs you can do so by copying the assembly to the Global Assembly Cache (GAC).

In the GAC, there might be other assemblies which might have a similar name to that you have created now. Hence there is a need to have a globally unique name which is otherwise called a strong name.

So you have to give a strong name to an assembly before you copy that to the GAC. Strong names can be given to an assembly using the tool SN.exe. After giving the strong name you can use the Gacutil.exe to copy the assembly to the GAC.



AJAX World - Xceed Launches Microsoft Silverlight 2 Control (SYS-CON Media)
Xceed launched Xceed Upload for Silverlight, the commercial offering in support of Microsoft's promising new Silverlight technology. The product is available now for purchase or as a fully functional 45-day trial on Xceed's website. Xceed Upload for Silverlight lets developers add upload capabilities to any Silverlight 2 Beta 1 application. All upload operations are asynchronous; as a result, ...

Recent Original Stories (New Mobile Computing)
Microsoft's C++/CLI Language Specification is an ECMA Standard (ECMA-372) and they are trying to fast track this document to be an ISO standard. The problem is that the language specified is very different from C++ and so is likely to create a great deal of confusion.




______________________________________________________

Recommended Resource



| Managing .NET Assemblies | Understanding Assemblies in .NET| Reflection and Assemblies in .NET | Advantages of using ASP.NET Assemblies | Understanding Assemblies in VB.NET | Building VB.NET Assemblies |



_______________

FREE Subscription

Stay Current With the Latest Technology Developments Realted to .NET. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.


 

Privacy Policy for www.dotnet-guide.com