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

Cannot get mscorlib to be loaded  #1

@KallDrexx

Description

@KallDrexx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions