This sucks bigtime...
It's not there in CF.NET 2.0, they have added it to SP1:
Added the Serializable attribute.
how silly is this... remoting isn't supported on the CF... Oh well..
What makes this so bad is that the dummy class is in the runtime libs. Removing it from there, it will require users to use CF.NET 2.0 SP1. Keeping it there will make CF.NET 2.0 SP1 users not be able to use the generated code. I can't change the template headers to [System.Serializable], because that will skip the dummy class for CF.NET 2.0 users without SP1.
One way to 'solve' this is to make the dummy class I have internal, and add a dummy class to the generated code, which is then enabled by using a conditional compilation directive, but that too is complicated, people will use the wrong templates, wrong dlls, don't know how to add the conditional compilation directive to the compiler options etc.
If anyone has ideas, please let me know, I don't see an easy way to solve this without breaking code and I hate that. This compactframework turns out to be an even bigger nightmare than mysql support...