[Mono-dev] [PATCH] AssemblyName.ctor () can't parse ProcessorArchitecture.

Paolo Molaro lupus at ximian.com
Mon May 7 11:49:34 EDT 2007


On 05/06/07 Marek Sieradzki wrote:
> I know that AssemblyName.ProcessorArchitecture isn't used in Mono but
> I'm using AssemblyName.ctor in xbuild (to build AssemblyName from
> string) and current version throws exception when it sees
> "ProcessorArchitecture=something".
> 
> Here's a patch that makes it assign correct values to new field in
> MonoAssemblyName.

Sadly MonoAssemblyName is exported in a public header and can't be
changed: it would be an ABI change, which we can't do until mono 2.0.
This means that the changes required are more complex. One idea is to
define a MonoInternalAssemblyName, make it embed a MonoAssemblyName
field and add the additional fields (cpu_arch). Then all the
internal functions that take a MonoAssemblyName should be changed to
take a MonoInternalAssemblyName instead. It may also be better,
depending on the amount of changes to not embed MonoAssemblyName in
MonoInternalAssemblyName, but to simple have the same fields in it.
At Mono 2.0 time we could typedef MonoInternalAssemblyName MonoAssemblyName;
and provide accessors for the fields.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list