Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
89 Views

Adding version number to the output target file name (.dll)

Hello,

I'm using visual studio with Intel fortran compiler to build a (DLL). I want to change the output file name incrementally every time so that the newly compiled (DLL) would have a different number than the previous (e.g. version number, time or date).

Could I get help on that?

0 Kudos
1 Reply
Highlighted
89 Views

With Visual Studio you can set a PreBuild event (and/or PostBuild event) that can be use to run a program (batch) that you write that increments an environment variable (YourSequenceVariable). Then you can use the $(YourSequenceVariable) in the output name/folder.

Jim Dempsey

0 Kudos