0
votes

I have a web site project in which my architecture is an N-layered architecture. I am using Micorsoft Enterprise library's validation DLL file. As of now this DLL file 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 a strong-named assembly by taking the Visual Studio 2008 command prompt and type:

sn -k publickey.snk

Then add the assembly tag to the assemblyinfo.cs file. I tried to do that, but my website project dosen't have any assemblyinfo.cs file.

1
You should be able to do this via the project properties dialogue on the project containing the Enterprise Library's source I think.Martin Smith
I got one link. msdn Please have a look at this.nimi

1 Answers

1
votes

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.