Click here to Skip to main content
12,634,107 members (23,348 online)
Rate this:
 
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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161208.2 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2016
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