Friday, January 20, 2006

HowTo: Install new assembly into GAC with key

I made a search on web, and this subject is not clearly defined in anywhere. Here is my blog on it:

1) prepare a key once:> sn.exe -k companyKeyPair.snk

2) on each client:> sn.exe -i companyKeyPair.snk

3) add your key to assemby (CompanyKey)
AssemblyInfo.cs: AssemblyKeyName("CompanyKey")]

4) add your assembly into GAC:> gacutil /i MyObject.dll

5) Now, to make your life easier, know that Visual Studio.NET doesn't check the GAC when you add references to projects. It checks a registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders

If you add a key below that key with a default value (string) of the path of where your assemblies are located, the next run of VS.NET will check that folder and your assemblies will show up in the dialog of the .NET references.



Thursday, January 19, 2006

Leuven


Leuven is a very nice city, well protected, an univercity city.

My first blog

This is my first blog. I want to write technical .NET subjects daily, and some photos about my life. I am developing mostly in asp.net and trying to create nice server control. I hope I can share my knowladge with most of the people.

Today I create a nice datagrid control with hover on the rows. And I found a very nice trick to postback the selected row to server.

I will try to post the code soon.