Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • 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
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Auto Increment and Include version number (Read 2541 times)
JamesFarmer
Junior Member
**
Offline


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Auto Increment and Include version number
Reply #1 - Nov 23rd, 2020 at 6:06pm
Print Post  
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
Select All
#MY_BUILD_VER 



Or did you want an automated increment that changes with every build?
« Last Edit: Nov 23rd, 2020 at 6:07pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: Auto Increment and Include version number
Reply #2 - Nov 23rd, 2020 at 9:46pm
Print Post  
Yes sir auto increment
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Auto Increment and Include version number
Reply #3 - Nov 23rd, 2020 at 9:55pm
Print Post  
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
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Auto Increment and Include version number
Reply #5 - Nov 24th, 2020 at 1:11am
Print Post  
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
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: Auto Increment and Include version number
Reply #6 - Nov 24th, 2020 at 5:06pm
Print Post  
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
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Auto Increment and Include version number
Reply #7 - Nov 25th, 2020 at 5:02pm
Print Post  
board.txt has to be in the project folder
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint