none
Manged code RRS feed

  • Question

  • We like to run manged code applications (c# or vb.net) on the devices. Are there any plans to run the .net Framework or the Micro Framework?

    Thursday, July 31, 2014 9:32 AM

Answers

  • It looks like a subset of .net is working on the Galileo board:

    C:\test>ConsoleApplication1.exe
    Hello world!
    Microsoft Windows NT 6.3.9600.0 - 1 - 4.0.20723.33439

    However some operations do not appear to work:

    Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException:
    Method not found: 'Boolean System.Environment.get_Is64BitOperatingSystem()'.
       at ConsoleApplication1.Program.Main(String[] args)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at AppDomainManager.HostMain(Int32 argc, Char** argv, Char* assemblyToRun, Int32 flags)

    AND

    Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException:
    Method not found: 'System.ConsoleKeyInfo System.Console.ReadKey(Boolean)'.
       at ConsoleApplication1.Program.Main(String[] args)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at AppDomainManager.HostMain(Int32 argc, Char** argv, Char* assemblyToRun, Int32 flags)

    Edit: Async features appear to work flawlessly.

    Monday, August 4, 2014 2:24 PM

All replies

  • Morton Nielsen has done it, check out his twitter

    @Pete_Brown @IoTDan I didn't think .NET was supported on Galileo? I just ran a C# Console app on it #winbuilder 

    But couldn't find out how

    Sunday, August 3, 2014 7:55 PM
  • It looks like a subset of .net is working on the Galileo board:

    C:\test>ConsoleApplication1.exe
    Hello world!
    Microsoft Windows NT 6.3.9600.0 - 1 - 4.0.20723.33439

    However some operations do not appear to work:

    Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException:
    Method not found: 'Boolean System.Environment.get_Is64BitOperatingSystem()'.
       at ConsoleApplication1.Program.Main(String[] args)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at AppDomainManager.HostMain(Int32 argc, Char** argv, Char* assemblyToRun, Int32 flags)

    AND

    Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException:
    Method not found: 'System.ConsoleKeyInfo System.Console.ReadKey(Boolean)'.
       at ConsoleApplication1.Program.Main(String[] args)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at AppDomainManager.HostMain(Int32 argc, Char** argv, Char* assemblyToRun, Int32 flags)

    Edit: Async features appear to work flawlessly.

    Monday, August 4, 2014 2:24 PM