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 Local Board Libs? (Read 3290 times)
Sidey
Newbies
*
Offline


Posts: 5
Joined: Mar 26th, 2018
Local Board Libs?
Mar 26th, 2018 at 9:13pm
Print Post  
I've tried to add a specific version of the ESP8266 Board libs to my vs2017 procject.
 
(https://github.com/esp8266/Arduino)

I've added a new Arduino shared code project and added all the source files from a specific core version to that project.
Then i added the dependency between the shared code and my main project.

The shared code seems not to be used. How can i use a specific version of the board libs etc in a Project?
« Last Edit: Mar 26th, 2018 at 9:13pm by Sidey »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local Board Libs?
Reply #1 - Mar 26th, 2018 at 9:27pm
Print Post  
Does the library have a root folder with library.properties and \src sub folder?

What is the name of the library?

Probably unrelated question ...

Did you update visual micro to the latest version today? There is a fix that ensures platform libraries take priority over custom libraries in document/arduino/libraries.
  
Back to top
WWW  
IP Logged
 
Sidey
Newbies
*
Offline


Posts: 5
Joined: Mar 26th, 2018
Re: Local Board Libs?
Reply #2 - Mar 27th, 2018 at 8:44pm
Print Post  
Tim@Visual Micro wrote on Mar 26th, 2018 at 9:27pm:
Does the library have a root folder with library.properties and \src sub folder?



No, it isn't exactly a libary it's more a board package with libarys in a src folder and library.properties.

It has boards.txt, plattform.txt and so on.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local Board Libs?
Reply #3 - Mar 27th, 2018 at 8:51pm
Print Post  
if you are trying to add a core then add it to mydocument\arduino\hardware as per arduino specification.

The core is compiled separate to project code
  
Back to top
WWW  
IP Logged
 
Sidey
Newbies
*
Offline


Posts: 5
Joined: Mar 26th, 2018
Re: Local Board Libs?
Reply #4 - Mar 27th, 2018 at 8:52pm
Print Post  
Tim@Visual Micro wrote on Mar 27th, 2018 at 8:51pm:
if you are trying to add a core then add it to mydocument\arduino\hardware as per arduino specification.

The core is compiled separate to project code


And how can i add specific versions for a project?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local Board Libs?
Reply #5 - Mar 27th, 2018 at 9:09pm
Print Post  
Oh sorry. You can not have project specific versions yet but I think you can clone the core and then rename the boards in the boards.txt. Hopefully multiple shared versions but centrally such as:

sketchbook\hardware\core1\
sketchbook\hardware\core2\
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local Board Libs?
Reply #6 - May 10th, 2018 at 11:28pm
Print Post  
I was wrong in my previous post. 

Using shared libraries in Visual Studio allows you to put libraries for any project(s) anywhere. So not only can you have local libraries you can also share groups of libraries among different projects. 

Visual studio is quite clever, it shows intellisense in library projects based on the board selection of the "startup project". This makes cross platform dev easier.

You can use the add library menu to give an example of "creating a project for libraries"
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint