reactive-extensions / il2js Goto Github PK
View Code? Open in Web Editor NEWIL to JavaScript Compiler
IL to JavaScript Compiler
When i try to compile a Silverlight 4 project, even the Ribbon example found in thirdparty, i get the following error:
IL2JSCOMPILER : error 1005: Unable to load assembly from file 'C:[XX replace with local folder XX]\IL2JS\bin\IL2JS_mscorlib.dll': invalid PEHeaderStandardFields.LMajor
I believe I have the right version of Silverlight 4, but from the above error im guessing that the mscorlib may be out of sync?
Anyone else encountering this issue when trying to compile SL4 dll's to JS ?
Anyone else having issues compiling the examples in the Runtime solution ?
I get the following error : '-mode traced' must be accompanied by at least on of '-trace' or '-finalTraceName' options.
I believe its being raised from the IL2JSCOMPILER, something to do with the CompilerEnvironment and the CompilationMode within it ...
Still working out how this thing all hangs together, so any help from the community would be much appreciated :)
I'm having trouble trying this out, and I can't find any good examples that show how you actually compile a silverlight application to JS.
I'm invoking the rewriter (the only application with a help screen) with:
PS C:\source\IL2JS-master\bin> ./il2jsr -rewrite C:\FlatRedBallProjects\Test1\Test1\Test1\Bin\Debug\Test1.dll -out test.js -reference .\IL2JS_mscorlib.dll -reference .\IL2JS_JSTypes_silverlight.dll
When I run this I get
error 3005: Unable to load assembly from file 'C:\source\IL2JS-master\bin': cannot load mscorlib
1 errors, 0 warnings
The most I could make sense from the code it comes down to the AssemblyLoader.cs code:
mscorlib = CCI.SystemTypes.SystemAssembly;
if (mscorlib == null || mscorlib.Directory == null)
The issue specifically is that mscorlib is not null, but mscorlib.Directory is null. Unfortunately, my attempts to trace this further haven't been successful.
Any help on how to use this would be greatly appreciated
I tried to build IL2JS using VS 2010 express for C#, since VS2010 Pro does not seem to be available any more.
I got it to build, and after some registry juggling got .]test to run, however the tests are giving me errors:
FAIL: Cannot build 'AmqpClient'
At C:\Users\jeffreykesselman\Projects\IL2JS-master\test.ps1:116 char:9
throw "FAIL: Cannot build '$test'"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Just running il2jsc on the command line gives the following error:
PS C:\Users\jeffreykesselman\Projects\IL2JS-master\bin> il2jsc error 1016: No assembly name resembled the special assembly 'mscorlib' 1 errors, 0 warnings
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.