Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .NET 7 DisableRuntimeMarshalling #233

Open
3 of 4 tasks
PathogenDavid opened this issue Feb 12, 2022 · 0 comments
Open
3 of 4 tasks

Add support for .NET 7 DisableRuntimeMarshalling #233

PathogenDavid opened this issue Feb 12, 2022 · 0 comments
Labels
Area-OutputGeneration Issues concerning the process of generating output from Biohazrd Concept-OutputFriendliness Issues concerning the friendliness of using the Biohazrd output Language-C# Issues specific to C#

Comments

@PathogenDavid
Copy link
Member

PathogenDavid commented Feb 12, 2022

.NET 7 is introducing a new attribute for disabling runtime marshaling across the entire assembly. Biohazrd should use this when possible to eliminate some of the oddities around bool/char handling.

Not strictly necessary for this, but it simplifies eliminating MarshalAs for bools:

@PathogenDavid PathogenDavid added Area-OutputGeneration Issues concerning the process of generating output from Biohazrd Concept-OutputFriendliness Issues concerning the friendliness of using the Biohazrd output labels Feb 12, 2022
@PathogenDavid PathogenDavid added the Language-C# Issues specific to C# label Feb 12, 2022
PathogenDavid added a commit that referenced this issue Feb 15, 2022
PathogenDavid added a commit that referenced this issue Mar 9, 2022
PathogenDavid added a commit that referenced this issue Mar 9, 2022
…y trampoline methods.

This commit also adds partial support for .NET 7 / C# 11.

Closes #236
Closes #79
Fixes #200
Contributes to #233
Contributes to #237
Workaround for #239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-OutputGeneration Issues concerning the process of generating output from Biohazrd Concept-OutputFriendliness Issues concerning the friendliness of using the Biohazrd output Language-C# Issues specific to C#
Projects
None yet
Development

No branches or pull requests

1 participant