Home All Groups Group Topic Archive Search About

How to set assemble version compiling single file ?

Author
21 Apr 2006 10:24 AM
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

Author
21 Apr 2006 10:57 AM
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

AddThis Social Bookmark Button