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
Libraries and Source Code Repository (TFS) (Read 3525 times)
Anton Kalcik
Junior Member
**
Offline



Posts: 10
Libraries and Source Code Repository (TFS)
Aug 28th, 2015 at 3:33pm
 
I added some user libraries using Arduino IDE and used them in my Visual Studio Project. I checked-in the solution into source code repository (TFS). Later I downloaded the solution on other computer and it seems the libraries wasn't checked-in. How is the correct way to handle external libraries with source code repository?
Back to top
« Last Edit: Aug 31st, 2015 at 3:04pm by Anton Kalcik »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10467
United Kingdom
Re: Libraries and Source Code Repository (TFS)
Reply #1 - Aug 28th, 2015 at 3:37pm
 
Hi,

I don't know. This is becoming a more popular discussion so worth some investigation.

There are plans to allow sub folders below the sketch for libs or ano code + a shared code folder of users choosing. It might be that having these items in sub folders is easier for tfs.

I also don't know what happens if you use the visual micro "project>show arduino core and library code". This option adds the libs and core sources as short cuts into the project. Maybe that helps tfs?

Thanks
Back to top
 
WWW  
IP Logged
 
Anton Kalcik
Junior Member
**
Offline



Posts: 10
Re: Libraries and Source Code Repository (TFS)
Reply #2 - Aug 31st, 2015 at 8:18am
 
The question is what happen when I use external library within the VS 2015 Plugin? How are the library files linked? It's not specific question about TFS, but how to handle libraries in the context of source code repository. The only way i see now is copy & paste source code from the library in self created files.
Back to top
« Last Edit: Aug 31st, 2015 at 3:03pm by Anton Kalcik »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10467
United Kingdom
Re: Libraries and Source Code Repository (TFS)
Reply #3 - Sep 1st, 2015 at 1:58pm
 
I see. Arduino libraries can be located in one of a few known locations. At compile time the #includes from the sketch .ino files are parsed and matched to a folder/lib within the known locations.

The location that is used for "user" libraries is usually "mydocuments/arduino/libraries".

"mydocuments/arduino" is known as the sketchbook folder and can be overridden in the Ide locations config dialog. Of course overriding the sketch book means that the location of the user libraries folder will also be overridden.

Hopefully during the next few weeks we will expand to allowing the VS project structure to be used to "tag" in linked or direct files as you would any normal MS project.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print