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 Cant' build/upload Arduino Project if part of solution... (Read 7115 times)
Eliyahu Peter
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2015
Cant' build/upload Arduino Project if part of solution...
Dec 6th, 2015 at 8:49pm
Print Post  
Hello,

I noticed, that if my Arduino Project is part of a solution - with different projects (WinForms, MVC, Web API 2) the Arduino Project does not build or upload...
If I remove the project from the solution and open it alone it builds and uploads with no problem...

Visual Studio 2015 - Update 1
Arduino IDE 1.6.5
VisualMicro 1512.2.0

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cant' build/upload Arduino Project if part of solution...
Reply #1 - Dec 6th, 2015 at 8:56pm
Print Post  
Hi

It will build via the main bar and menu commands if it is the "Startup project" shown in bold. 

Alternatively you can right click and select build or debug>start to upload.

Hope that helps a bit.
« Last Edit: Dec 6th, 2015 at 8:56pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Eliyahu Peter
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2015
Re: Cant' build/upload Arduino Project if part of solution...
Reply #2 - Dec 6th, 2015 at 9:07pm
Print Post  
Hello,

It indeed will build via Project Only->Build [Project] (and I can add a shortcut for that on the toolbar instead of the original icon), but Debug->Start will start the default project of the solution not uploading the Arduino Project currently selected...So I have no option to upload the code to the board...

Regards,
Peter
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cant' build/upload Arduino Project if part of solution...
Reply #3 - Dec 6th, 2015 at 9:12pm
Print Post  
Hi,

I was thinking of right click project in solution explorer and clicking "Debug>Start new instance". I think that will work.

The visual micro toolbar button functionality is currently under review with all this in mind (and some other bits).
  
Back to top
WWW  
IP Logged
 
Eliyahu Peter
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2015
Re: Cant' build/upload Arduino Project if part of solution...
Reply #4 - Dec 6th, 2015 at 9:14pm
Print Post  
Hello,

I see...It does work...
Thank you to point me that out - it makes my life much easier...
Just to ask - do you mean to make the original toolbar buttons to work that way?

Regards,
Peter
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cant' build/upload Arduino Project if part of solution...
Reply #5 - Dec 6th, 2015 at 9:20pm
Print Post  
The build and upload buttons on the visual micro toolbar work the same as the standard visual studio build and start commands.

Therefore they duplicated functionality which is less confusing but a bit of a waste. maybe the visual micro build and upload should work with whichever project is selected in the solution explorer. The problem is the code being edited can be from project A whilst the solution explorer might have an item from project B selected. So it has the potential to confuse. 

I find the "Startup Project" system annoying at times Smiley
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint