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

Clear or reload cached classes at runtime?#1725

Answeredbyfilmor
Mikhinja asked this question inQ&A
Discussion options

I have an add-in into a larger application that runs python scripts, using python.NET.

I have noticed that if I modify only the python script I am running everything is ok.
But if I run the script once, and after that I modify one of the files imported, and run the script again, then the changes in the imported class are not applied until I restart the whole application.

I assume there is a class cache somewhere that causes this behavior.
So my question is, is there a way to force at runtime a clear, or refresh, or reload of cached objects or classes?

You must be logged in to vote

This is not a Python.NET but a .NET problem. You will need to use AppDomains in .NET Framework or Mono andAssemblyLoadContext in .NET Core (or 5-6) to be able to reload DLLs.

Replies: 1 comment

Comment options

This is not a Python.NET but a .NET problem. You will need to use AppDomains in .NET Framework or Mono andAssemblyLoadContext in .NET Core (or 5-6) to be able to reload DLLs.

You must be logged in to vote
0 replies
Answer selected byMikhinja
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@Mikhinja@filmor

[8]ページ先頭

©2009-2025 Movatter.jp