Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Cannot get mscorlib to be loaded #1

Open
KallDrexx opened this issue Nov 7, 2012 · 0 comments
Open

Cannot get mscorlib to be loaded #1

KallDrexx opened this issue Nov 7, 2012 · 0 comments

Comments

@KallDrexx
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant