Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hello
I've been compiling all of my c# dll's like this in cmd:
 
csc /target:library /out:MathLibrary.DLL Add.cs Mult.cs
 
I was wondering if you could put some sort of command in there to specify the version of the dll, something like this:
 
csc /target:library '/version:1 . 0 . 0 . 0' /out:MathLibrary.DLL Add.cs Mult.cs
 
This doesn't work, but if you could figure out some alternative that would be great!
 
Thanks
Posted 15-Jan-13 2:41am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

No, but you can add an attribute (AssamblyVersionAttribute[^]) to the code that will be compiled to metadata. See also: http://msdn.microsoft.com/en-us/library/ms379563(v=vs.80).aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,478
1 OriginalGriff 6,516
2 Peter Leow 3,587
3 Zoltán Zörgő 3,406
4 Richard MacCutchan 2,397


Advertise | Privacy | Mobile
Web03 | 2.8.150123.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100