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 vcxitems not created, library not added to Solution Explorer (Read 9 times)
gj
Junior Member
**
Offline


Posts: 49
Joined: Feb 12th, 2016
vcxitems not created, library not added to Solution Explorer
Today at 12:39pm
Print Post  
Symptom: Using "Add Library" adds the #include in the code, but no library-node is created in Solution Explorer.
Afterwards Build/Compile/Upload work fine.

Same issue with existing projects, as well as new ones (empty or Blink).

This has been working fine for years until some 2 weeks ago (and I noticed it some days after I moved my libraries and code).
Libraries and Code are all under folder Arduino
[Arduino]
  - [libraries]
  -- [AccelStepper]
  -- [more libraries]
  - [Project 1]
  - [Project 2]

I moved the entire Arduino-folder one level deeper and changed
VMicro -> General -> Configure IDE Locations to reflect the new situation.
And since compiler can still find the libraries I assumed this was done right.

Eventually, 
Uninstalled and re-installed Visual Studio en Visual Micro
Win 11 Pro, 25H2, OS Build: 26200.9168
Visual Studio = 17.14.39
Visual Micro = 2026.708.2204
Did not solve it.

Additional info:
- An existing project showed only nodes for those libraries that had vcxitems-file in the library-folder.
- Manually creating a vcxfile in a library-directory and hacking that into the.sln-file made the library appear as a correct node (with cpp and h below it) in Solution Explorer
- "Add library"-Refresh shows "Toolchain reload complete". No error messages afaik.
- File vcxitems is not created either on toolchain reload, "Add Library" or compile/build
- Started VStudio with /log (and added the lib using "Add Library"), but cannot deduct any error message from it
- As per your request I added the Build-log, although I assume it's not build-related

Any suggestions?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
gj
Junior Member
**
Offline


Posts: 49
Joined: Feb 12th, 2016
Re: vcxitems not created, library not added to Solution Explorer
Reply #1 - Today at 12:41pm
Print Post  
O, and the current sketch is this:
Code
Select All
#include <HX711.h>
void setup()
{
}

void loop()
{
}
 

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2962
Joined: Feb 13th, 2019
Re: vcxitems not created, library not added to Solution Explorer
Reply #2 - Today at 12:59pm
Print Post  
Thanks for the report.

If a library contains a VCXITEMS file then it is seen as a Shared Project, which can be referenced in the current solution.  This can be better for intellisense but can have issues when moving PCs with paths etc..

If you normally saw this in the past then it is likely that you had one of the vMicro > Add Library > Library Advanced options enabled (e.g. Create Shared Project when Including Libraries)
Add Library Documentation: https://www.visualmicro.com/page/User-Guide.aspx?doc=Add-Libraries.html

The libraries can also be cloned into the project/solution using these options, and an alternative for complete isolation and version pinning is the Portable Solutions approach available.
Portable Solutions Documentation:https://www.visualmicro.com/page/New-Arduino-Portable-Solution.aspx

Does that help?
  
Back to top
IP Logged
 
gj
Junior Member
**
Offline


Posts: 49
Joined: Feb 12th, 2016
Re: vcxitems not created, library not added to Solution Explorer
Reply #3 - Today at 1:46pm
Print Post  
That helps absolutely!

I was so convinced that something was wrong with my installation I didn't bother to look at this option.
Sorry to have bothered you.
Anyway, I hope this topic in the forum might help others in the future.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint