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 VS doesn't install/load libraries (Read 1174 times)
Walleyeman
Newbies
*
Offline


Posts: 2
Joined: Mar 4th, 2022
VS doesn't install/load libraries
Mar 30th, 2023 at 4:29pm
Print Post  
When I add a libraby (i.e. SPI) Visual Studio wont add it. It does add the *.h include but not the library. Doesn't show up in Solution Explorer either.
Everything worked fine a few days ago. Is it a setting?

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS doesn't install/load libraries
Reply #1 - Mar 30th, 2023 at 4:31pm
Print Post  
For arduino, adding a .h include is adding the library

If you would like to see the source of the library in the solution explorer,  click "vMicro>Show hidden files"
  
Back to top
IP Logged
 
Walleyeman
Newbies
*
Offline


Posts: 2
Joined: Mar 4th, 2022
Re: VS doesn't install/load libraries
Reply #2 - Mar 30th, 2023 at 4:58pm
Print Post  
Ok. I see the libraries under /src..etc. But something must have changed with my setup. Libraries used to show with purple icon under the solution folder.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS doesn't install/load libraries
Reply #3 - Mar 30th, 2023 at 5:12pm
Print Post  
That meant you had "create shared library" enabled on the add library menu, and have subsequently switched it off. It is not recommended to use that without fully understanding how it works because it traps you into a specific library version.

It is better to use the "show hidden files" option. That shows the sources in the solution explorer but automatically switches them to be correct when switching boards or updating library versions.

To avoid confusion, I recommended removing any shared library projects from the solution. We are considering moving the "create shared library" setting to somewhere less obvious.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint