Reputation: 1677
If we compile a .NET solution using VS 2010 that will run in a asp.net 2.0 environment and we reference an external DLL and plan to run deploy and run the solution in Sharepoint I understand I will need to deploy my DLL and create a safecontrol entry. But what about the referenced DLL? Will I need PublicKeytoken an dsafecontrol entry for it?
<SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=xxxxxxxxx" Namespace="System.Web.UI.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
Also, do I need to set the target to 2.0 in visual studio 2010? Where/how?
Upvotes: 1
Views: 965
Reputation: 85036
You will need to deploy the referenced dll to the GAC as well. Once it is in there you can get the PublicKeyToken.
Upvotes: 2