Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-03-2007, 12:20 PM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
How can I get the file version for a .sln, if possible?

How can I retrieve the version number from an .sln file which I'm using to build with a 'Make VS.NET' action step? I also tried to get the number from an .msi file, which is created by the action, but nothing. I know how to do this for an .dll file, and this approach gives me no errors but no number as well.

I want to know what that number is to be able to increment it and set it to that value. Is there some other file that I should be looking for?
Reply With Quote
  #2  
Old 07-03-2007, 01:01 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
A .sln file doesn't have a version number; each individual project within the solution usually does, and you can use the Get VS.NET Version action to retrieve a project's version(s) into temporary macro(s). If you're using a Visual Studio setup project to create the .msi, you can retrieve the product version from the corresponding .vdproj file.
http://www.visualbuild.com/Manual/vs_netprojver.htm

The attached sample also demonstrates retrieving the product version from a .msi file and the file version of a .dll file into temporary macros and incrementing the version.
Attached Files
File Type: bld msi_dll_versions.bld (1.9 KB, 1229 views)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 08:27 AM.


Copyright © 1999-2023 Kinook Software, Inc.