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

Multiple Projects in Solution


  • Please log in to reply
9 replies to this topic

#1 Igor Kondrasovas

Igor Kondrasovas

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • LocationPorto, Portugal

Posted 31 October 2011 - 11:52 PM

Hello, I am using Visual Studio 2010 Ultimate to create my Netduino projects. I am using multiple projects in the same solution, as I usually do with other project types. However, I am experiencing strange behavior while deploying them. Even if I select a project as the default project in the solution, this project is not the one deployed to target. I still did not find any logic on how Visual Studio is choosing which project will be deployed, but it is usually the same project every time, until something (that I don´t know) happens and them another project is the one that is always deployed. Is anyone else with the same issue? Thank you, Igor.

Igor Kondrasovas

www.inovativatec.com


#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 01 November 2011 - 07:06 AM

Hi Igor, When using multiple projects in a single solution, it'll normally deploy all projects and runs the StartUp project. This is very common behavior I suppose.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 November 2011 - 07:37 AM

Hi Igor, Also, if you go into the Solution's deployment properties, you can select/deselect which projects you want to deploy to your Netduino. Chris

#4 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 01 November 2011 - 08:11 AM

Also, if you go into the Solution's deployment properties, you can select/deselect which projects you want to deploy to your Netduino.

Yay, I reached my target for today, learned something new ;)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#5 Igor Kondrasovas

Igor Kondrasovas

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • LocationPorto, Portugal

Posted 01 November 2011 - 11:11 AM

Hello Stefan, Thank you for the reply. Making a comparison to regular Windows Applications, if you have multiple Applications (.exe) projects in a solution, you will have started only the one marked as the "Startup Project". In my case (have a look on the attached screenshot) you have the "LAB1_AcionarLED" project set as startup and looking on the output log (in attach also) you see that "LAB3_AcionarBotaoRevisado" is actually deployed to the target. All projects in my solution are Netduino Projects, not class libraries or any other kind of project, so I believe that Visual Studio should be deploying only the one it is marked to be the start up project. What do you think? Thank you, Igor.

Attached Files


Igor Kondrasovas

www.inovativatec.com


#6 Igor Kondrasovas

Igor Kondrasovas

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • LocationPorto, Portugal

Posted 01 November 2011 - 11:14 AM

Hi Igor,

Also, if you go into the Solution's deployment properties, you can select/deselect which projects you want to deploy to your Netduino.

Chris


Hi Chris,

I did know that screen! Thank you!

However, I really want to deploy a single project, the one I marked as startup project! But this is not what is happening (see my reply to Stefen).

What do you suggest?

Igor.

Igor Kondrasovas

www.inovativatec.com


#7 Dan Morphis

Dan Morphis

    Advanced Member

  • Members
  • PipPipPip
  • 188 posts

Posted 01 November 2011 - 05:11 PM

Hi Chris,

I did know that screen! Thank you!

However, I really want to deploy a single project, the one I marked as startup project! But this is not what is happening (see my reply to Stefen).

What do you suggest?

Igor.


Igor, an easier method than fighting with the config screen is to unload the projects you don't want deployed to the Netduino. That is the method I use.

-dan

#8 Igor Kondrasovas

Igor Kondrasovas

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • LocationPorto, Portugal

Posted 01 November 2011 - 08:48 PM

Igor, an easier method than fighting with the config screen is to unload the projects you don't want deployed to the Netduino. That is the method I use.

-dan


Hello Dan,


This is exactly what I am doing today. However, I would like to see if I am getting out of my mind or if there is someone else who is experiencing the same problem... do you have this problem?


Thank you,


Igor.

Igor Kondrasovas

www.inovativatec.com


#9 Dan Morphis

Dan Morphis

    Advanced Member

  • Members
  • PipPipPip
  • 188 posts

Posted 02 November 2011 - 10:26 PM

Hello Dan,


This is exactly what I am doing today. However, I would like to see if I am getting out of my mind or if there is someone else who is experiencing the same problem... do you have this problem?


Thank you,


Igor.


I do indeed. I wouldn't say so much that is is a defect as it is the way that netmf and VS work together. When VS is uploading the projects to the board, it expects that every project is needed. And its kind of a crap shoot as to which assembly gets picked as main.

Most of the time you won't have multiple non-related assemblies in a solution, so for most people its a non-issue.

-dan

#10 Igor Kondrasovas

Igor Kondrasovas

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts
  • LocationPorto, Portugal

Posted 02 November 2011 - 11:03 PM

I do indeed. I wouldn't say so much that is is a defect as it is the way that netmf and VS work together. When VS is uploading the projects to the board, it expects that every project is needed. And its kind of a crap shoot as to which assembly gets picked as main.

Most of the time you won't have multiple non-related assemblies in a solution, so for most people its a non-issue.

-dan



Hello Dan,


I understand what you say about having multiple non-related projects in a solution, but I have to disagree in general:

If Visual Studio allows a "Set Startup Project" option while managing multiple Netduino projects, then I think this should work. So either you have the correct project deployed or Visual Studio should not enable this option to the user, since you will expect that it work. In other types of projects, like Desktop, Web, Mobile, you have have multiple "executable" projects in a single solution and the one you set as startup will be actually the one launch.

I know that working with project templates and integrating thing to Visual Studio should not be a piece of cake, but I can be pretty sure more people will have the same user experience I had.

I just openned a post on the .NET Micro Framework Forum that references this conversation: http://www.netmf.com...1c-c446951f1fc4

Regards,



Igor.

Igor Kondrasovas

www.inovativatec.com





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.