* codegen.cs (AssemblyClass.CheckInternalsVisibleAttribute): Generate
errors 1726 for strong named assemblies with InternalsVisibleToAttribute
that doesn't contain the full public key. This is a update of the
friend assemblies in .Net 2.0 release.
svn path=/trunk/mcs/; revision=54676
+2005-12-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * codegen.cs (AssemblyClass.CheckInternalsVisibleAttribute): Generate
+ errors 1726 for strong named assemblies with InternalsVisibleToAttribute
+ that doesn't contain the full public key. This is a update of the
+ friend assemblies in .Net 2.0 release.
+
2005-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Fix #76995
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;
}