How to set assemble version compiling single file ?

S

shel

Hi,

When I compile a single file using command line, the assembly version is
0.0.0.0.

Is there anyway to set the assemble version in the class or in command line?

-------------------------------------------
csc /target:library Logic.cs
Output is Logic.dll but version is 0.0.0.0
-------------------------------------------



Thanks,
Shel
 
V

Vadym Stetsyak

Hello, shel!

s> Is there anyway to set the assemble version in the class or in command
s> line?

Yes, you can do it via assembly attribute,
write these in yor source file

[assembly: AssemblyVersion("1.2.3.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 

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