-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Provide custom marshaller for USER_INFO_1
#81705
Comments
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsIn PR #81480, the following P/Invoke was failing to compile when targeting .NET 8. runtime/src/libraries/Common/tests/TestUtilities/System/WindowsIdentityFixture.cs Lines 121 to 122 in 1671125
The failure is because in the current dotnet/runtime official build this P/Invoke is only compiled to target .NET 6 and so the runtime/src/libraries/Common/tests/TestUtilities/System/WindowsIdentityFixture.cs Lines 127 to 138 in 1671125
This scenario could be made to "just work" with the following issue addressed: #81656
|
For anyone that might want to pick this up, here is an example of a struct with custom marshalling used in downlevel and current targets: Lines 344 to 348 in 876a97d
|
In PR #81480, the following P/Invoke was failing to compile when targeting .NET 8.
runtime/src/libraries/Common/tests/TestUtilities/System/WindowsIdentityFixture.cs
Lines 121 to 122 in 1671125
The failure is because in the current dotnet/runtime official build this P/Invoke is only compiled to target .NET 6 and so the
LibraryImport
source generated degrades to aDllImport
. We should provide a custom marshaller for the struct belowruntime/src/libraries/Common/tests/TestUtilities/System/WindowsIdentityFixture.cs
Lines 127 to 138 in 1671125
This scenario could be made to "just work" with the following issue addressed: #81656
The text was updated successfully, but these errors were encountered: