Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Debug issues with multiple projects


  • Please log in to reply
3 replies to this topic

#1 Dan Morphis

Dan Morphis

    Advanced Member

  • Members
  • PipPipPip
  • 188 posts

Posted 22 June 2011 - 03:04 AM

I've seen this issue multiple times, but I think I've finally been able to isolate the cause tonight. I'm doing a demo tomorrow on NETMF and so I've built up a solution with many projects, so I can quickly move to each demo.

When I press F5, all the projects end up deployed to the Netduino board, and the last one in obviously wins. I can deploy each project as I need it, but I want to be able to demonstrate debugging on the device. Any ideas?

------ Deploy started: Project: NetduinoSilverlightServer, Configuration: Debug Any CPU ------
------ Deploy started: Project: NetduinoSilverlightServer, Configuration: Debug Any CPU ------
------ Deploy started: Project: LcdWithAnalog, Configuration: Debug Any CPU ------
------ Deploy started: Project: LcdWithAnalog, Configuration: Debug Any CPU ------
------ Deploy started: Project: LCD, Configuration: Debug Any CPU ------
------ Deploy started: Project: LCD, Configuration: Debug Any CPU ------
------ Deploy started: Project: PwmSpeaker, Configuration: Debug Any CPU ------
------ Deploy started: Project: PwmSpeaker, Configuration: Debug Any CPU ------
------ Deploy started: Project: PwmLed, Configuration: Debug Any CPU ------
------ Deploy started: Project: PwmLed, Configuration: Debug Any CPU ------
========== Deploy: 5 succeeded, 0 failed, 0 skipped ==========

One hacky workaround I discovered is to unload all but the desired project, and that causes only the desired project to get deployed. But its a hack...

-dan

#2 phantomtypist

phantomtypist

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationNew York, NY

Posted 22 June 2011 - 12:05 PM

Go to the solution properties (right click on the solution). A window will appear. There is a tree structure of sorts on the left hand side. Click on "Configuration Properties". The right hand side of the window will change. This shows you all of the projects in your solution and their build/deploy properties. My guess is that all of your projects are set to "Deploy". Only check the boxes of the projects you wish to deploy. That should do it. Let us know how you make out and good luck on your presentation!

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 June 2011 - 01:28 PM

phantomtypist is correct. You may also be able to right-click on a project in the Solution Explorer window and make it your "startup project"...although phantomtypists's solution is the sure-fire solution. I've seen quite a few folks use Visual Studio in this way. I generally only load dependent projects into Visual Studio (i.e. one solution). I'm not sure if this type of scenario was designed into the .NET MF "workflow" or not... Chris

#4 Dan Morphis

Dan Morphis

    Advanced Member

  • Members
  • PipPipPip
  • 188 posts

Posted 22 June 2011 - 04:31 PM

phantomtypist is correct.

You may also be able to right-click on a project in the Solution Explorer window and make it your "startup project"...although phantomtypists's solution is the sure-fire solution.

I've seen quite a few folks use Visual Studio in this way. I generally only load dependent projects into Visual Studio (i.e. one solution). I'm not sure if this type of scenario was designed into the .NET MF "workflow" or not...

Chris


Ahh, this all makes sense now. The project was set as my startup, but it was deploying all of them. And I'm guessing since they all had a static void main, its the reason the last one in won.

The more that I think about it, I can see that the NET MF workflow wasn't designed around what I'm trying to do.

Thanks for your help Chris and phantomtypist

-dan




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.