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 Can not add new file from solution explorer when creating a lib (Read 720 times)
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Can not add new file from solution explorer when creating a lib
Dec 19th, 2022 at 1:17pm
Print Post  
If I do to the project in the solution explorer right click and add an arduino header and cpp (I don't need a cpp) than I get a promt, I can't do that...

  

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


Posts: 228
Joined: Jul 1st, 2020
Re: Can not add new file from solution explorer when creating a lib
Reply #1 - Dec 19th, 2022 at 1:21pm
Print Post  
If I do it from the project with the shetch It imports it, not in to my lib, but into my shetch project.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can not add new file from solution explorer when creating a lib
Reply #2 - Dec 19th, 2022 at 2:23pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can not add new file from solution explorer when creating a lib
Reply #3 - Dec 19th, 2022 at 2:31pm
Print Post  
For standard c++ code in standard c++ projects you should always use the standard microsoft add new file facility.

The menu items you are looking at will be removed because they do cause confusion. For arduino shared libs they expect an arduino project to be in the same solution, the new files are then added to that project. Hence the confusion.

Thanks for the report.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can not add new file from solution explorer when creating a lib
Reply #4 - Dec 22nd, 2022 at 11:03pm
Print Post  
This Topic was moved here from Visual Studio 2017, 2019, 2022 [move by] Tim@Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint