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 Recommended way to use cloned Git repository as shared library project? (Read 1372 times)
Arecon
Junior Member
**
Offline


Posts: 53
Joined: Apr 2nd, 2017
Recommended way to use cloned Git repository as shared library project?
Feb 16th, 2020 at 2:00pm
Print Post  
Hi

I wonder what would be the recommended way to include a Git project that is not an Arduino library in a VisualMicro solution in a way that it stays a Git repository and can be updated via Git while being treated like a library included with the options "Create Shared Project" and "Clone For Solution".

I tried cloning the Git repository to a folder under the Libraries folder but then didn't find a way to add it to the solution without converting it into a Visual C++ project.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Recommended way to use cloned Git repository as shared library project?
Reply #1 - Feb 16th, 2020 at 9:29pm
Print Post  
It is easy to add a new empty VC++ shared project (.vcxitems) to the library folder. You can create a new C++ shared project then copy and rename the resulting vcxitems to your library. 

When you have a vcxitems you can click "Add Existing Project" to your solution.

Otherwise, if you don't want to add a vcxitems, then you have manual control to use git for any libraries in the mydocuments\arduino\libraries folder or any other official arduino location. If you add new files to libraries that are in the official locations that are not in the current solution, then click the rescan button in visual micro or restart the ide to detect the new files/libraries.
  
Back to top
IP Logged
 
Arecon
Junior Member
**
Offline


Posts: 53
Joined: Apr 2nd, 2017
Re: Recommended way to use cloned Git repository as shared library project?
Reply #2 - Feb 22nd, 2020 at 11:54am
Print Post  
Thanks, I will try this. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint