Hey,

The attached patch updates the check when using
InternalsVisibleToAttribute, to have the same behaviour of release
of .Net 2.0 (to include the entire key, not the key token).

Carlos.
Index: codegen.cs
===================================================================
--- codegen.cs	(revisiĆ³n: 52934)
+++ codegen.cs	(copia de trabajo)
@@ -1242,9 +1242,9 @@
 			else if (aname.Version != null || aname.CultureInfo != null)
 				throw new Exception ("Friend assembly `" + a.GetString () + 
 						"' is invalid. InternalsVisibleTo cannot have version or culture specified.");
-			else if (aname.GetPublicKeyToken () == null && Name.GetPublicKeyToken () != null) {
+			else if (aname.GetPublicKey () == null && Name.GetPublicKey () != null) {
 				Report.Error (1726, a.Location, "Friend assembly reference `" + aname.FullName + "' is invalid." +
-						" Strong named assemblies must specify a public key token in their InternalsVisibleTo declarations");
+						" Strong named assemblies must specify a public key in their InternalsVisibleTo declarations");
 				return false;
 			}
 
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to