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 Save libraries and board files as part of project (Read 1070 times)
Captain Credible
Junior Member
**
Offline


Posts: 11
Joined: Feb 6th, 2018
Save libraries and board files as part of project
Feb 26th, 2020 at 11:01am
Print Post  
Hi. 
I dread updating IDE or library files in fear of breaking something on one of many projects that may be using them. So i was wondering, is there a way to save an arduino project using visual micro but collecting the used board files, libraries and any other external code into the prohject to safeguard it against any of these external files being altered at a later point?  furthermore, i find the many locations in which the board files / lib files seem to be stored very confusing. Some are under documents/arduino, some are under the root folder for the specific arduino version, some are in appdata roaming and so on. Is there any one place that is "correct" where i can slap all my lib and board files ?


cheers. 

Daniel
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Save libraries and board files as part of project
Reply #1 - Feb 26th, 2020 at 12:28pm
Print Post  
You can use the shared project system to put libraries wherever you want. I suggest you use this structure.

solution folder (.sln)
    Libraries
        Library1
    Projects
        Project1

There are options on the Add Library menu that will auto clone libraries or you can copy them manually.

There is no current way to copy the core but that is planned. In the meantime I suggest you make a note in a .txt file of which core version you have installed in board manager. Then you will always be able to get it back.

The clone library adds a version marker to the folde structure of the cloned library. This means a single solution can contain more than one arduino project with each using a different version of the library.

Using the above structure means a single checkin to git for the entire solution with all libraries.

« Last Edit: Feb 26th, 2020 at 5:45pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Captain Credible
Junior Member
**
Offline


Posts: 11
Joined: Feb 6th, 2018
Re: Save libraries and board files as part of project
Reply #2 - Feb 26th, 2020 at 6:10pm
Print Post  
Thanks! will have a go at these features!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint