[Mono-list] Compiling PocketPC .NET binaries with Mono

2003-10-30 Thread Steven Brown

In order to compile PocketPC .NET binaries using MS .NET but without
Visual Studio, I can extract and rename the .NET dlls from the Compact
Framework's .cab for ARM and compile with /nostdlib using the procedure
documented at http://dotnetdn.com/without-visual-studio/ :

csc /t:winexe CFHelloWorld.cs /r:system.dll /r:mscorlib.dll
/r:system.windows.forms.dll /nostdlib

However, trying this with Mono (0.26) on Linux with a command like:

mcs /t:winexe test.cs /r:System.dll /r:mscorlib.dll
/r:System.Windows.Forms.dll /nostdlib

fails with tons of 'not defined' errors for core elements like error
CS0518: The predefined type `System.Void' is not defined.  Is there a
way to do this with Mono currently, or anyone have an idea as to what
code changes would be required?

Here are the dlls in question from the Compact Framework if you want to
try it yourselves (subject to MS's EULA in there too):
https://activecampus2.ucsd.edu:8081/svn/native/trunk/PocketPC%20DLLs/

Regarding related discussions, I found this thread last month that seems
to have died right as it reached this point:
http://lists.ximian.com/archives/public/mono-list/2003-September/015747.
html

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] XmlInclude/XmlSerializer troubles, any workaround?

2003-08-22 Thread Steven Brown

To use XmlSerializer to serialize objects containing other untyped
objects, csc requires an [XmlInclude] attribute (as far as I know), but
it seems mono's XmlSerializer hasn't gotten to the point where it can
understand it (or is this a previously unknown issue?).  Is there a way
around this problem for now anyone can reccomend?  Here's a testcase
that throws with mono and passes with MS:


using System;
using System.Collections;
using System.Xml.Serialization;

public class Contained {
}

[XmlInclude(typeof(Contained))]
public class Container {
  public ArrayList contained = new ArrayList();
}

class Test {

  public static void Main(string[] args) {
XmlSerializer serializer = new XmlSerializer(typeof(Container));

Container container = new Container();
container.contained.Add(new Contained());

serializer.Serialize(Console.Out, container);
  }
}

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list