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 Deploy with multiple projects problem (Read 1324 times)
Bob Baggerman
Newbies
*
Offline


Posts: 4
Joined: Aug 1st, 2023
Deploy with multiple projects problem
Aug 1st, 2023 at 2:36pm
Print Post  
I have a Visual Studio solution with two projects within it. When I go to Deploy it doesn't matter which project is the startup project or which project is selected in the pull-down or pop-up menu. The project that gets deployed is the one that is associated with the currently open .INO file. If the .INO file for both projects are open then it depends on which .INO currently has focus. Weird.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Deploy with multiple projects problem
Reply #1 - Aug 1st, 2023 at 3:00pm
Print Post  
What are you clicking to deploy?
  
Back to top
IP Logged
 
Bob Baggerman
Newbies
*
Offline


Posts: 4
Joined: Aug 1st, 2023
Re: Deploy with multiple projects problem
Reply #2 - Aug 1st, 2023 at 3:12pm
Print Post  
Tim@Visual Micro wrote on Aug 1st, 2023 at 3:00pm:
What are you clicking to deploy?


There are a number of menus within Visual Studio from where you can deploy. For example I can right-click on the project and choose deploy. I would normally expect the chosen project to deploy. I can click on the "Build" menu and choose  "Deploy Solution" which normally acts on the current startup project. I can even choose "Build & Upload" from the vMicro extension menu.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Deploy with multiple projects problem
Reply #3 - Aug 1st, 2023 at 3:27pm
Print Post  
Thanks. There are a couple of options to control these commands. For non VS users the concept of a startup project is alien but for VS users it is expected.

VS can also be confusing because what it considers is the active project is actually the one selected in the solution explorer. The state of the "sync code and solution explorer" icon causes more confusion.

see if this helps...

Switch off:- 

vMicro>General>Active Code Has Priority Over Solution
vMicro>General>Visual Studio Start Commands Use Active Code Instead of Startup Project


« Last Edit: Aug 1st, 2023 at 3:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint