[Mono-list] Possible simple Mono Cecil question
Rodrigo B. de Oliveira
rodrigobamboo at gmail.com
Wed Mar 14 14:44:17 EDT 2007
On 3/11/07, Gluber <bernhardglueck at bluelogic.at> 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
More information about the Mono-list
mailing list