diff options
author | Aaron Robinson <arobins@microsoft.com> | 2022-06-01 02:19:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 02:19:00 +0300 |
commit | 332a6f92347a14f8e5e3bcc334ef11d1b12f4619 (patch) | |
tree | bfd5ea88807984c68ae425622fc2c40ac758d867 /.editorconfig | |
parent | 53855d25b55fbfb534014477ecfec63b242da24b (diff) |
Convert all possible `DllImport`s to `LibraryImport` for .NET 7+ (#41573)
* Convert all possible DllImports to LibraryImport for .NET 7+
* Explicitly declare entry point on Windows P/Invokes with W suffix.
* Mark as "ref struct".
* Consume latest source generator.
* Permit unsafe blocks.
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig index 80d276422c..c532bc0d1f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -77,6 +77,9 @@ charset = utf-8-bom [*.{cs,vb}] +# SYSLIB1054: Use 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time +dotnet_diagnostic.SYSLIB1054.severity = warning + # CA1018: Mark attributes with AttributeUsageAttribute dotnet_diagnostic.CA1018.severity = warning |