You can generate a key pair from the VS command prompt.
sn -k C:\YourKeys.snk
In your AssemblyInfo.cs class you add the following line near the bottom (you need to escape the backslash).
[assembly: AssemblyKeyFile("C:\\YourKeys.snk"]
Furthermore, if you want to install the assembly into the GAC you can use the following command in the VS command prompt once you have done the previous steps. (Remember to navigate to the path)
Contributor
2827 Points
930 Posts
How to make dll as trusted?
Jul 23, 2014 10:50 PM|aditya1986|LINK
Hi How to make dll as trusted in VS2005?
Thanks
Member
184 Points
187 Posts
Re: How to make dll as trusted?
Jul 24, 2014 01:36 AM|852EC327|LINK
Please use Strongly-signed dll:
http://msdn.microsoft.com/en-us/library/xc31ft41(v=vs.110).aspx
Member
73 Points
37 Posts
Re: How to make dll as trusted?
Jul 24, 2014 06:49 PM|twice|LINK
Hi,
Have a look this this Youtube playlist https://www.youtube.com/playlist?list=PL8598C97BA1D871C1, it's very simple and got some nice explanation with it.
You can generate a key pair from the VS command prompt.
In your AssemblyInfo.cs class you add the following line near the bottom (you need to escape the backslash).
Furthermore, if you want to install the assembly into the GAC you can use the following command in the VS command prompt once you have done the previous steps. (Remember to navigate to the path)