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 How to do pre-build events (Read 1737 times)
RLCook
Junior Member
**
Offline


Posts: 12
Joined: Apr 12th, 2017
How to do pre-build events
Aug 11th, 2017 at 7:54pm
Print Post  
I want to use Visual Studio pre-build events to create a version string before each build. However when I follow the Visual Studio instructions my events never execute. Should they execute with Visual Micro?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to do pre-build events
Reply #1 - Aug 11th, 2017 at 8:15pm
Print Post  
Hi,

Please follow the arduino instructions for pre build events. 

One extra thing in visual micro is that you can use a board.txt in the current project to add the events. Of course you can also add them to the arduino recommended places which will work for all your projects.

If you use board.txt then click Save for the board.txt before build. VS has a bug where auto save of .txt files happens after the build.

If you use the arduino locations then click "Tools>Visual Micro>Reload tool chains" after making the external file changes or re-start the ide.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint