You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When code generation is targeting .NET 7, LibraryImport should be used in place of DllImport as this will pre-generate marshalling operations normally performed at runtime.
When framework target is lower than .NET 7, DllImport should continue to be used.
Brief Description
When code generation is targeting .NET 7,
LibraryImport
should be used in place ofDllImport
as this will pre-generate marshalling operations normally performed at runtime.When framework target is lower than .NET 7,
DllImport
should continue to be used.More information about
LibraryImportAttribute
can be found here: https://devblogs.microsoft.com/dotnet/announcing-dotnet-7-preview-7/#libraryimport-p-invoke-source-generator(Non os specific, code generation)
OS: N/A
The text was updated successfully, but these errors were encountered: