[nem-en] .NET Compact Framework support?
Ivan Lakhturov
lakhturov at gmail.com
Fri Dec 1 22:47:56 CET 2006
Hello Michal,
Friday, December 1, 2006, 10:34:02 AM, you wrote:
> On 12/1/06, Ivan Lakhturov <lakhturov at gmail.com> wrote:
>> i guess, for all that devices-staff we'd need some (interested) guy to
>> check and add some support.
> Yeah, sure. But this guy who asked could just try to run some
> hello-world kind of Nemerle program in CF and see if it works. If he
> has it configured it should be 5 minute task.
>> we have not one, i guess all of us are already busy doing something
>> useful for nemerle.
> :-)
he tried, here're results:
(http://rsdn.ru/forum/Message.aspx?mid=2244838&only=1)
he made compile.bat:
@echo off
if "%NETCF_PATH%" == "" (
set NETCF_PATH=C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE)
if DEFINED REF ( set REF= )
set REF=%REF% "-r:%NETCF_PATH%\MsCorlib.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Data.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Drawing.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Messaging.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Net.IrDA.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Web.Services.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Windows.Forms.DataGrid.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Windows.Forms.dll"
set REF=%REF% "-r:%NETCF_PATH%\Microsoft.WindowsCE.Forms.dll"
set REF=%REF% "-r:%NETCF_PATH%\System.Xml.dll"
ncc -nostdlib %REF% %*
made a little project:
using System.Drawing;
using System.Windows.Forms;
class MyFirstForm : Form {
public static Main() : void {
Application.Run(MyFirstForm());
}
}
and runned compilation:
C:\Projects\Nemerle\Mobile>compile.bat MyFirstForm.n
<[01;31merror<[0m: internal compiler error: got some unknown exception of type S
ystem.TypeLoadException: incorrect usage of attribute Runtime Impl.
in System.Reflection.Assembly.GetExportedTypes()
in Nemerle.Compiler.LibraryReferenceManager.LoadTypesFrom(LibraryReference lib
)
in Nemerle.Compiler.LibraryReference..ctor(Assembly assembly)
in Nemerle.Compiler.LibraryReferenceManager.AddAssembly(Assembly assembly)
in Nemerle.Compiler.LibraryReferenceManager.AddLibrary(String name)
in Nemerle.Compiler.Passes._N_static_proxy50438.apply_void(String _N_sp_parm50
445)
in Nemerle.Collections.List.Iter['a](list`1 l, FunctionVoid`1 f)
in Nemerle.Compiler.Passes.LoadExternalLibraries()
in Nemerle.Compiler.Passes.Run()
in Nemerle.CommandlineCompiler.MainClass.main_with_catching()
regards, phantom
More information about the devel-en
mailing list