Deploying and Generics
#1
Posted 16 October 2011 - 08:20 PM
#2
Posted 20 October 2011 - 06:55 AM
-- H.L. Mencken, "What I Believe"
#3
Posted 20 October 2011 - 08:01 AM
In case you wrote and tested an application and need to load it into several Netduino's, that option can be very handy.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?
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.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?
The .NET Micro Framework is indeed a bit more limited then the .NET Framework. A bit challenging sometimesAlso, 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.
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#4
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 down - 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