CodeDOM and dll version

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
 
R

Ross Donald

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.*")
)
)
);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top