[Mono-devel-list] [PATCH] Check for assembly attributes
Ben Maurer
bmaurer at ximian.com
Thu Aug 4 00:46:10 EDT 2005
On Wed, 2005-08-03 at 20:55 -0500, Carlos Alberto Cortez wrote:
> Hey,
>
> A patch is attached, containing a check for InternalsVisibleToAttribute,
> when it is applied to an assembly. It reports a warning or shows an
> error, just like csc does.
> + if (t.Equals (typeof (System.Runtime.CompilerServices.InternalsVisibleToAttribute))) {
This precludes us from using the assembly in mscorlib.dll. It could
potentially be useful to use there -- say to let us write nunit tests
that poked at internals.
See http://blogs.msdn.com/junfeng/archive/2004/09/14/229254.aspx about
how there is support for handling commas in file names. Your code would
break under this.
Finally, comparisons should be done with the invariant culture.
-- Ben
More information about the Mono-devel-list
mailing list