kevingadd/JSIL — Issue #54: Windows Phone XNA
Author: kierepka
Created: 2011-12-27 20:23:40+00:00
State: open

Hi,

When I try to convert XNA game using JSILc I'm getting this error:
// Building 'C:\prywatne\FunApp\XGame\Wp7\XGame.sln' ... done.
// Applied settings from 'defaults.jsilconfig'.
// Loaded C:\prywatne\FunApp\XGame\Wp7\Platformer\Platformer\bin\Windows Phone\Debug\XGame.dll
// Could not load module Microsoft.Devices.Sensors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e: Failed to resolve assembly: 'Microsoft.Devices.Sensors, Version=7.0.0.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e
'
// Loaded C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Game\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Game.dll
// Loaded C:\prywatne\FunApp\XGame\Wp7\Platformer\Platformer\bin\Windows Phone\Debug\FarseerPhysicsXNA.dll
// Loaded C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll
// Loaded C:\Windows\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll
// Loaded C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at JSIL.AssemblyTranslator.<>c__DisplayClassf.b__b(Int32 i) in E:\GitHub\JSIL\JSIL\AssemblyTranslator.cs:line 227
at System.Threading.Tasks.Parallel.<>c__DisplayClassf`1.b__c()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass7.b__
6(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled Exceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body)
at JSIL.AssemblyTranslator.LoadAssembly(String path, Boolean useSymbols, Boolean includeDependencies) in E:\GitHub\JSIL\JSIL\AssemblyTranslator.cs:line 0
at JSIL.AssemblyTranslator.LoadAssembly(String path) in E:\GitHub\JSIL\JSIL\AssemblyTranslator.cs:line 116
at JSIL.AssemblyTranslator.Translate(String assemblyPath, Boolean scanForProxies) in E:\GitHub\JSIL\JSIL\AssemblyTranslator.cs:line 260
at JSIL.Compiler.Program.Main(String[] arguments) in E:\GitHub\JSIL\Compiler\Program.cs:line 253