[Mono-list] Embedded API: Getting assembly version via MonoAssemblyName

Robert Jordan robertj at gmx.net
Sat Mar 28 13:40:09 UTC 2015

On 27.03.2015 13:44, Jonathan Mitchell wrote:
> HI
> I want to get the assembly version like so:
> MONO_API uint16_t          mono_assembly_name_get_version     (MonoAssemblyName *aname,
> 						      uint16_t *minor, uint16_t *build, uint16_t *revision);
> So I need MonoAssemblyName like so:
> mono_assembly_fill_assembly_name(MonoImage *image, MonoAssemblyName *);
> But MonoAssemblyName is opaque and cannot be statically allocated.
> So how do I proceed?

There are a couple of pubic mono_assembly_name_* functions in
assembly.h, including mono_assembly_name_new () which is probably
allocating an opaque MonoAssemblyName struct for you.


More information about the Mono-list mailing list