How to set assemble version compiling single file ?

  • Thread starter Thread starter shel
  • Start date Start date
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
 
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
 
Back
Top