Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using a relocated Mono #27

Closed
Closed
@tkacvins

Description

@tkacvins

Environment

  • Pythonnet version: 2.5.2
  • Python version: 3.9.2
  • Operating System: CentOS 7
  • .NET Runtime: 4.5

Details

  • I relocated the mono I built from source (in preparation for embedding mono in a product) and got this
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/opt/mono-6.8.0.123/lib/mono/4.5/mscorlib.dll' directory.

My understanding is mono can be relocated, but it requires invoking their C API to set the assembly paths, etc...
It would be nice if clr-loader could enable this by calling the right functions from libmono-2.so

I found this problem after relocating mono by running

echo "import clr" | python3

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