Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #1  
Old 12-14-2006, 11:35 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
According to http://msdn2.microsoft.com/en-us/lib...31(VS.80).aspx (ApplicationRevision property section) "it is not automatically incremented for builds performed at the command-line." It appears that the application revision value is stored in the project's .csproj.user file. A Run Script step with VBScript code like this could be used to increment it:

Code:
' load the .csproj.user file
Set msxml = CreateObject("MSXML.DOMDocument")
msxml.async = False
msxml.load("%CSPROJ_USER_FILE%")

' retrieve the current revision and increment
Set node = msxml.selectSingleNode("/Project/PropertyGroup/ApplicationRevision")
node.Text = node.Text + 1

' save the changes
msxml.save "%CSPROJ_USER_FILE%"
Also, contrary to the documentation on the page, it seems that building from the command-line will not actually publish the project (it does not use the publish dir configured in project properties in the IDE). This can be resolved by passing

"/p:PublishDir=drive:\path\to\base_publish_dir\\"

in the additional values field on the Options tab of the Make VS.NET action.
Reply With Quote
Reply


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 11:26 AM.


Copyright © 1999-2023 Kinook Software, Inc.