[Mono-devel-list] [PATCH] Check for assembly attributes

Ben Maurer bmaurer at ximian.com
Thu Aug 4 12:16:10 EDT 2005

On Thu, 2005-08-04 at 00:07 -0500, Carlos Alberto Cortez wrote:
> > 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.
> I'm not very sure about the scenarios you are thinking in. Could you
> please show some detailed examples?

For example, I add an internal api to corlib called FooParser. I want to
write nunit tests, so what I do is make the nunit assembly be able to
see corlib's insides.

> > 
> > 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.
> Well, I didn't know about that, but IHMO I find it like a very bad
> practice, and I'm sure that there aren't people out there who like to
> call their assemblies 'My,Assembly,Version=xx..." or something like
> that.

Well, it was important enough to add the feature in msft

> Also, to test this, I tried to load an assembly named
> 'Test,Assembly' (using Assembly.Load ()) in both mono and ..NET, and
> neither could load it successfully. The only way to work with it AFAIK
> is when you get name of the assembly itself, or use Assembly.LoadFrom.

It is a whidbey feature, as mentioned in the article.

-- Ben

More information about the Mono-devel-list mailing list