{{ message }}
ABI.Initialize gives a helpful message when the TypeOffset interop class is not configured correctly#1340
Merged
lostmsu merged 7 commits intopythonnet:masterfrom Jan 4, 2021
Merged
Conversation
…is not configured correctly
Member
Member
Python.Runtime.csproj includes all interopXX.cs files
Contributor
Author
lostmsu
reviewed
Dec 31, 2020
Contributor
Author
|
The test failures imply that NativeTypeOffset is in fact not generated on some non-Windows platforms. I'm not sure what to do about that. |
Member
|
It seems to be a temporary fluke, the test failures are identical between this and your other PR, which are unrelated. |
Member
|
Oh @tminka , you meant this failure: f59e5d0 I think this is because you must keep <ItemGroup Condition=" '$(PythonInteropFile)' != '' ">
<Compile Include="$(PythonInteropFile)" />
</ItemGroup>I believe the file is generated outside |
Contributor
Author
lostmsu
approved these changes
Jan 4, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this implement/fix? Explain your changes.
When changing Python versions, it is easy to put Python.NET into a misconfigured state. This PR provides a helpful error message in that case.
Does this close any currently open issues?
No
Any other comments?
This change can be tested by manually editing
configured.propsto have an incorrectPythonInteropFileChecklist
Check all those that are applicable and complete.
AUTHORSCHANGELOG