On 3/11/07, Gluber <[EMAIL PROTECTED]> wrote:
>
> Hi !
>
> I am developing a tool that reads the AssemblyVersionAttribute of an
> assembly, changes its instantiation parameters and saves out the resulting
> assembly again.

AssemblyVersionAttribute is a pseudo custom attribute for compilers to
know how to properly name an Assembly.

You probably want to do something like this:

    AssemblyDefinition myLibrary = AssemblyFactory.GetAssembly(filename);
    myLibrary.Name.Version = myNewVersion;
    AssemblyFactory.SaveAssembly( myLibrary, filename );

Rodrigo
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to