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

Get loaded dotnet runtime? And how can I explicitly specify#2565

Unanswered
sl1zz3r asked this question inQ&A
Discussion options

When i call

pythonnet.load()pythonnet.get_runtime_info()

The Output is:

  Version:      <undefined>  Initialized:  True  Shut down:    False  Properties:    domain =     config_file = None

Why is the Version undefined.

My Requirements are
.Net Framework SDK 4.8

When i load this
runtimeconfig.json

{"runtimeOptions": {"tfm":"net4.8","frameworks": [               {"name":"Microsoft.NETCore.App","version":"4.8"        }      ]    }  }
importloggingimportosimportpythonnetROOT=os.path.abspath(os.path.dirname(__file__))logger=logging.getLogger(__name__)definitialize():pythonnet.load("netfx",config_file=os.path.join(ROOT,"runtimeconfig.json"),    )logger.info("------------>: %s",pythonnet.get_runtime_info())

Output

15:14:56,919 - dotnet:15 - INFO - ------------>: Runtime: .NET Framework=============  Version:      <undefined>  Initialized:  True  Shut down:    False  Properties:    domain =     config_file = D:\xxx\yyy\src\sinplcproject\runtimeco…
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@sl1zz3r
Converted from issue

This discussion was converted from issue #2564 on March 18, 2025 15:29.


[8]ページ先頭

©2009-2025 Movatter.jp