Multiple projects in solution targeting Netduino
#1
Posted 16 December 2010 - 04:33 AM
#2
Posted 16 December 2010 - 05:04 AM
FYI....I've been having problems deploying to the Netduino when there are multiple projects (i.e. .csproj) in a solution (i.e. .sln) that are set to target the Netduino device.
If I set the project that I am working on to target the Netduino device and set the other projects to target the emulator, then the deploy will work quickly and reliably.
This has been my experience...I hope it helps someone else avoid some 'hair pulling'.
Did you try specifying a single project as the startup project?
#3
Posted 16 December 2010 - 03:41 PM
#4
Posted 16 December 2010 - 08:21 PM
#5
Posted 16 December 2010 - 09:14 PM
#6
Posted 16 December 2010 - 09:38 PM
So - for example, here is a solution I have with a bunch of projects in it. The trick is to deploy only one of them - otherwise, they stomp on each other. To choose what gets built and what gets deployed, you use the Configuration Manager - which is accessible a couple of ways: From the Build... menu, and from the little "Dubug" drop-down on the toolbar. Here is a screen shot of mine:
Here you can see all the projects - but only PWM1 will get built and deployed to my Netduino.
The second trick, if you have multiple projects and you want to step into code, you must select the startup project. To do that, you right-click on the project in the Solution Explorer, and select "Set as Startup Project". Then, when you debug, and set a break point, it will start the project you expect Here is a screen shot of mine. Here you see the PWM1 project is in bold, because it is the Startup Project.
Hope that helps.
- Sean
#7
Posted 18 December 2010 - 09:22 AM
FYI....I've been having problems deploying to the Netduino when there are multiple projects (i.e. .csproj) in a solution (i.e. .sln) that are set to target the Netduino device.
If I set the project that I am working on to target the Netduino device and set the other projects to target the emulator, then the deploy will work quickly and reliably.
This has been my experience...I hope it helps someone else avoid some 'hair pulling'.
Alfred,
Do you have a small solution that you could zip up and post here which demonstrates the issue? This might be something we can fix in the .NET MF SDK or take up with Microsoft as a potential improvement for the .NET MF 4.2 SDK.
Chris
#8
Posted 21 December 2010 - 02:38 PM
Yes, it did help! Thanks for this information!The trick is to deploy only one of them - otherwise, they stomp on each other. To choose what gets built and what gets deployed, you use the Configuration Manager - which is accessible a couple of ways: From the Build... menu, and from the little "Dubug" drop-down on the toolbar.
Hope that helps.
- Sean
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users