CodeDOM and dll version

  • Thread starter Thread starter Bragadiru
  • Start date Start date
B

Bragadiru

Hi,

I can compile dinamically with CodeDOM, but all the dlls have 0.0.0.0
version. How can I set it ??

Thanks for any advice
 
I haven't tried it but I would guess that you could add the AssemblyVersion
attribute like this:

// [assembly: AssemblyVersion("1.0.2.*")]
compileUnit.AssemblyCustomAttributes.Add(
new CodeAttributeDeclaration("AssemblyVersion",
new CodeAttributeArgument(
new CodePrimitiveExpression("1.0.2.*")
)
)
);
 
Back
Top