Re: Embedded API: Getting assembly version via MonoAssemblyName

Robert Jordan <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
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.

Robert


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.