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

FixedFileLoadException when tryingclr.AddReference('/full/path.dll')#1573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lostmsu merged 1 commit intopythonnet:masterfromlosttech:add-ref-fullpath
Sep 28, 2021

Conversation

lostmsu
Copy link
Member

What does this implement/fix? Explain your changes.

Before trying to load an assembly by its full path we were trying to callAssembly.Load on it.Assembly.Load interprets its argument as a validAssemblyName. However full paths are not valid assembly names, so that call would throwFileLoadException, which we did not handle.

The fix is to separately try to parse input string into anAssemblyName and only tryAssembly.Load when it succeeds.

Does this close any currently open issues?

9d5f579#commitcomment-57061082

Any other comments?

Related:#1514

@lostmsulostmsuforce-pushed theadd-ref-fullpath branch 5 times, most recently from2c33d22 toebb5772CompareSeptember 27, 2021 23:22
…/path.dll')Before trying to load an assembly by its full path we were trying to call `Assembly.Load` on it. `Assembly.Load` interprets its argument as a valid `AssemblyName`. However full paths are not valid assembly names, so that call would throw `FileLoadException`, which we did not handle.reported inpythonnet@9d5f579#commitcomment-57061082Related:pythonnet#1514
@lostmsulostmsu merged commitfc989d5 intopythonnet:masterSep 28, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp