Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Auto Increment and Include version number (Read 195 times)
JamesFarmer
Junior Member
**
Offline



Posts: 41
Auto Increment and Include version number
Nov 23rd, 2020 at 4:04pm
 
Create an easy way to include into program the current build number.  So this can used in the program.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10902
United Kingdom
Re: Auto Increment and Include version number
Reply #1 - Nov 23rd, 2020 at 6:06pm
 
You could open the project proprties tool window and use the Defines property to set a build number.

MY_BUILD_VER=2

i the code that will be

Code:
#MY_BUILD_VER 



Or did you want an automated increment that changes with every build?
Back to top
« Last Edit: Nov 23rd, 2020 at 6:07pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline



Posts: 41
Re: Auto Increment and Include version number
Reply #2 - Nov 23rd, 2020 at 9:46pm
 
Yes sir auto increment
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10902
United Kingdom
Re: Auto Increment and Include version number
Reply #3 - Nov 23rd, 2020 at 9:55pm
 
There are a couple of guides in the links section at the top of the documentation page

https://www.visualmicro.com/page/User-Guide.aspx?doc=index
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline



Posts: 41
Re: Auto Increment and Include version number
Reply #4 - Nov 23rd, 2020 at 10:29pm
 
I am sorry id dont see anything on this topic
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10902
United Kingdom
Re: Auto Increment and Include version number
Reply #5 - Nov 24th, 2020 at 1:11am
 
Look for these two links in the links at the top of the page body.

Embed Version/Build Info
Auto Increment Version (build events)
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline



Posts: 41
Re: Auto Increment and Include version number
Reply #6 - Nov 24th, 2020 at 5:06pm
 
I unable to get it working i update the board txt under the esp32 folder  but appears not to be running the hook
attached is build text
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10902
United Kingdom
Re: Auto Increment and Include version number
Reply #7 - Nov 25th, 2020 at 5:02pm
 
board.txt has to be in the project folder
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print