This technique may be helpfull for createing destributed applications or application that needs to be updateable through LAN or internet. What do you need to know:
How to:
1. Create strong named assembly
a. Generate the key (cmd command): sn -k key.snk
b. Put following lines in your assembly source code:
using System;
using System.Reflection;
....
[assembly:AssemblyKeyFile(@"PATH\key.snk")]
[assembly:AssemblyVersion("1.0.0.0")]
....
namespace My
{
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="lib" publicKeyToken="0adfbaad3776a0d3" culture="neutral" />
<codeBase version="1.0.0.0" href="http://localhost/asm/lib.dll"/>
</dependentAssembly> </assemblyBinding> </runtime>
</configuration>
Last updated: 28 may 2007