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 Using VS for both Arduino and traditional .NET applications (Read 3160 times)
Josh Ferguson
Newbies
*
Offline


Posts: 2
Joined: Aug 18th, 2016
Using VS for both Arduino and traditional .NET applications
Aug 18th, 2016 at 4:44pm
Print Post  
This is probably just my inexperience being the problem.  I installed the Visual Micro plugin and it worked for my Arduino-like project (actually the adafruit feather) but when I loaded a traditional .NET project, it would not compile and would throw an error.  When I uninstalled the plugin, I could then compile normally.

I'm sure it's just a setting or configuration I didn't set correctly.  Could anyone explain how to do this?

Thanks in advance!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Using VS for both Arduino and traditional .NET applications
Reply #1 - Aug 18th, 2016 at 5:35pm
Print Post  
Hi,

I suspect that when you created the .net solution you didn't close the existing open arduino solution before hand.

This would give a solution with two projects in it. In that case you would need to right click the .net project and set it as "Startup project" so that Visual Studio would consider it the project to build.

The first project in a solution is automatically set as the startup project which would have been your arduino project.

If you don't want to make it the startup project then right click the project and click "Start new instance" to start a specific .net project.

You should also ensure that the arduino code of an arduino project is not the active code in the editor when you want to compile .net. This is configurable but won't mean much to you until you understand how vs works.

Normally you should work with single project solutions until you know visual studio a little more.

Does this make sense?
  
Back to top
WWW  
IP Logged
 
Josh Ferguson
Newbies
*
Offline


Posts: 2
Joined: Aug 18th, 2016
Re: Using VS for both Arduino and traditional .NET applications
Reply #2 - Aug 18th, 2016 at 7:18pm
Print Post  
I honestly can't figure out what went wrong.  I reinstalled the plugin and went back and forth between solutions and I never had the same problem again.  I know previously that I was closing the arduino solution before opening the other one.  While I'm inexperienced with embedded programming, I've been using Visual Studio since 2001.  Oh well.  It's working for me now.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Using VS for both Arduino and traditional .NET applications
Reply #3 - Aug 18th, 2016 at 7:21pm
Print Post  
Okay sorry for assuming you were new to vs.

I'm not sure what happened either. 

Visual micro should only be active for projects that have a name the same as the containing folder and also include a .ino of the same name in the same folder. If these three rules are not hit then you should see a normal vs build, furthermore the project needs to be a c++ project.

Let me know if happens again.

Thanks
« Last Edit: Aug 18th, 2016 at 7:23pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint