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 Collect libraries into solution (Read 1055 times)
Captain Credible
Junior Member
**
Offline


Posts: 11
Joined: Feb 6th, 2018
Collect libraries into solution
Jul 22nd, 2019 at 8:49pm
Print Post  
Is there a way to make a copy of all libraries used in a project and store them as a part of the solution or project? To "freeze it in time" so that I don't have to spend ages figuring out what versions of what libraries worked with a specific project when digging it up after a while ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Collect libraries into solution
Reply #1 - Jul 23rd, 2019 at 9:18am
Print Post  
Yes we are adding a clone to make this easier. However you can do this quite easily.

Use the add library>always add a project to see how a shared project works. You will see that visual micro creates a .vcxitems (shared c++ project) project file in the lib folder and adds it to the solution.

You can simply copy the library to a new location, remove the project from the solution and re-add from the new location. Make sure the new location is not below the real arduino project. The best combination is the solution in top level folder with libraries and real projects as child siblings.

solution
    libraries
       lib1
    projects
      proj1



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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Collect libraries into solution
Reply #2 - Jul 28th, 2019 at 2:51pm
Print Post  
Automatic workflows to implement this are included in 1907.26.9 which is currently available in the releases section of this gallery. When you select a library to include in a project the new menu options shown below will govern if the library is copied to below the solution or the current project with or without versioning.

This assumes your solution folder is not the same location as the project, otherwise both options will place libraries in the same place (below the project) in a sub folder called "Libraries".

The name of the "Libraries" sub folder is a new option in tools>options if you want to change it.

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint