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 The "VCMessage" task failed unexpectedly (Read 5293 times)
vmsh
Junior Member
**
Offline


Posts: 16
Joined: Jul 9th, 2017
The "VCMessage" task failed unexpectedly
Jul 12th, 2017 at 7:55am
Print Post  
Hello! I'm back again.

When I build the entire solution, I get these 12 errors from the Arduino project. (Link to Pastebin).

Please note that the build succeeds nonetheless, and the errors don't appear when only building a specific project instead of the entire solution.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The "VCMessage" task failed unexpectedly
Reply #1 - Jul 12th, 2017 at 5:30pm
Print Post  
Does the solution contain any non-arduino projects?
  
Back to top
WWW  
IP Logged
 
vmsh
Junior Member
**
Offline


Posts: 16
Joined: Jul 9th, 2017
Re: The "VCMessage" task failed unexpectedly
Reply #2 - Jul 13th, 2017 at 8:30am
Print Post  
Yes it does.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The "VCMessage" task failed unexpectedly
Reply #3 - Jul 14th, 2017 at 9:07pm
Print Post  
What project is the Startup project?

Do the other projects build okay when you right click the project name and select "Build"?
  
Back to top
WWW  
IP Logged
 
vmsh
Junior Member
**
Offline


Posts: 16
Joined: Jul 9th, 2017
Re: The "VCMessage" task failed unexpectedly
Reply #4 - Jul 14th, 2017 at 10:37pm
Print Post  
After adding a third project to the solution the problem doesn't manifest itself anymore.

It used to happen with either project as the Startup project, and the other projects used to build ok.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The "VCMessage" task failed unexpectedly
Reply #5 - Jul 14th, 2017 at 10:48pm
Print Post  
Okay thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The "VCMessage" task failed unexpectedly
Reply #6 - Sep 2nd, 2017 at 10:01pm
Print Post  
Hi,

This error shows when an arduino project is in the solution but is not the "Startup project". When you click Build>Solution the Visual Studio engine is allowed to attempt to build the arduino project as a windows project.

This is useful for advanced user who cross-compile with other tools.

If you don't want this facility then click "Build>Configuration Manager" and deselect the Arduino projects from the Visual Studio build process. 


note: If arduino is not the Startup Project the visual micro build commands will still build and upload but debugger function keys and short cuts such as "Continue" won't work
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint