Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Question: Has the way Python imports a .NET6 library changed? #1951

Closed as not planned
@DareDevilDenis

Description

@DareDevilDenis

To import a .NET6 library, my understanding is that the steps in Python.Net 3.0 are:

fromclr_loaderimportget_coreclrfrompythonnetimportset_runtimeruntime=get_coreclr('MyApplication.runtimeconfig.json')set_runtime(runtime)

However, with clr-loader 0.2.3 (released 5 days ago), the call to get_coreclr with one argument fails with exception:
TypeError: get_coreclr() takes 0 positional arguments but 1 was given

I've raised this issue in clr-loader:pythonnet/clr-loader#35

However, I was wondering if the change to the get_coreclr() API might be intentional, meaning that the recommended steps to import a .NET6 library has changed. Can anyone please confirm?

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp