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....
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
Collect libraries into solution (Read 131 times)
Captain Credible
Newbies
*
Offline



Posts: 6
Collect libraries into solution
Jul 22nd, 2019 at 9:49pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10387
United Kingdom
Re: Collect libraries into solution
Reply #1 - Jul 23rd, 2019 at 10:18am
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10387
United Kingdom
Re: Collect libraries into solution
Reply #2 - Jul 28th, 2019 at 3:51pm
 
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 Topic Print