I have a web site project in which my architecture is n layered architecture. I am using Micorsoft Enterprise library's validation dll. As of now this dll is not strongly named. I need to make that assembly strongly named. how can i do this. I saw some articles which depicts how to create strong named assembly by taking the vs 2008 command promtp and type sn -k publickey.snk, and then add the assembly tag to the assemblyinfo.cs. I tried to do that, but my website project dosen't have any assemblyinfo.cs file.
+2
A:
Since ASP .NET Web Site projects are compiled dynamically, you can't assign a strong name to the assembly since it does not exist (yet). If you want to assign a strong name your ASP.NET code, you'll have to use a ASP.NET Web Application project instead.
As for assigning a strong name to a third party DLL, you can't unless it's been delay signed. There is another way but it will probably contravene the license agreement.
Mr Roys
2010-05-06 09:46:50
As far as I know the Microsoft Enterprise Library comes with source so you can compile it yourself.
Martin Smith
2010-05-06 09:58:41
In that case, it should be trivial setting the properties to sign the Enterprise Library project with a strong name. However, I think the ASP. NET Website project can't be strongly named since there's no assembly created.
Mr Roys
2010-05-06 10:02:41