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

Deploying and Generics


  • Please log in to reply
3 replies to this topic

#1 RichardE

RichardE

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationNorth Yorkshire, UK

Posted 16 October 2011 - 08:20 PM

1. Out of interest, I see Visual Studio has "Deploy" and "Deploy Solution" options in the debug menu. When I use "Deploy" it downloads the assemblies to the Netduino, but it doesn't run anything. What's the point of this, and how do you then get it to run after downloading it? Do you always have to use "Start Debugging" (or F5) in which case the "Deploy" option seems a little pointless since F5 also does a Deploy? 2. What is "Deploy Solution" for? Does this allow you to download multiple projects from your solution to the Netduino? Again, wouldn't F5 do this? Also, just in case it helps anyone - don't even think about using generics (like I did). You just get a very cryptic error message of 8 hex digits. The .NET micro framework does not support generics. All I wanted to do was this: public class Point<CoordinateType>

#2 Stefan W.

Stefan W.

    Advanced Member

  • Members
  • PipPipPip
  • 153 posts

Posted 20 October 2011 - 06:55 AM

If you use the "Deploy" option, you have to reboot the netduino by pressing the button on it - I don't know why VS does not do that by default.
I believe that no discovery of fact, however trivial, can be wholly useless to the race, and that no trumpeting of falsehood, however virtuous in intent, can be anything but vicious.
-- H.L. Mencken, "What I Believe"

#3 Stefan

Stefan

    Moderator

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

Posted 20 October 2011 - 08:01 AM

1. Out of interest, I see Visual Studio has "Deploy" and "Deploy Solution" options in the debug menu. When I use "Deploy" it downloads the assemblies to the Netduino, but it doesn't run anything. What's the point of this, and how do you then get it to run after downloading it? Do you always have to use "Start Debugging" (or F5) in which case the "Deploy" option seems a little pointless since F5 also does a Deploy?

In case you wrote and tested an application and need to load it into several Netduino's, that option can be very handy.

2. What is "Deploy Solution" for? Does this allow you to download multiple projects from your solution to the Netduino? Again, wouldn't F5 do this?

When you're working on a project and have imported some other libraries, it can happen that you have 2 projects with type "Class Library" and one with type "Netduino Application" in the same solution. In those cases, you need to deploy the class libraries as well.

Also, just in case it helps anyone - don't even think about using generics (like I did). You just get a very cryptic error message of 8 hex digits. The .NET micro framework does not support generics.

The .NET Micro Framework is indeed a bit more limited then the .NET Framework. A bit challenging sometimes ;)
"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

#4 NeonMika / Markus VV.

NeonMika / Markus VV.

    Advanced Member

  • Members
  • PipPipPip
  • 209 posts
  • LocationUpper Austria

Posted 07 November 2011 - 02:18 PM


Also, just in case it helps anyone - don't even think about using generics (like I did). You just get a very cryptic error message of 8 hex digits. The .NET micro framework does not support generics. All I wanted to do was this:

public class Point<CoordinateType>


Just a little off-topic... But if someone wants to have a List just for one type, he/she could use the following:

public class CoordinateTypeList
{
private ArrayList _list;

public void Add(CoordinateType ct)
{
_list.Add(ct);
}

//go on with remove etc...
}


You could also use ArrayList as super-class and "hide" the old Add and Remove methods (keyword 'new'), so that most of the methods can be used without changing

NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and d
own - and upload files

 

If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype :)

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------





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.