Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Other >> Project Guidance >> Libraries and Source Code Repository (TFS)
https://www.visualmicro.com/forums/YaBB.pl?num=1440772413

Message started by Anton Kalcik on Aug 28th, 2015 at 3:33pm

Title: Libraries and Source Code Repository (TFS)
Post by Anton Kalcik on 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?

Title: Re: Libraries and Source Code Repository (TFS)
Post by Visual Micro on 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

Title: Re: Libraries and Source Code Repository (TFS)
Post by Anton Kalcik on 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.

Title: Re: Libraries and Source Code Repository (TFS)
Post by Visual Micro on 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.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.