Click here to Skip to main content
13,295,051 members (85,564 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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!

Posted 15-Jan-13 2:41am

1 solution

Rate this: bad
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:[^]

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 |
Web02 | 2.8.171207.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2017
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