diff options
author | Jeremy Koritzinsky <jekoritz@microsoft.com> | 2022-02-19 09:51:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 09:51:27 +0300 |
commit | ca6f4206f535458ab82561cd517ded0615728d58 (patch) | |
tree | 836a0dfe10327fdd86318c80595fc3c07e861a5d /docs | |
parent | ee0b4607e676c72a7eefc02bc18be0e6fd7db1be (diff) |
Remove ExactSpelling from GeneratedDllImport (#65343)
* Update conversion code fix to offer multiple fixes for appending each previously probed entry-point suffix when ExactSpelling is false.
* Remove ExactSpelling property and move properties that were relying on ExactSpelling = false to use explicit entrypoint names.
* Emit ExactSpelling = true for all of our emitted target DllImports.
* Fix a few entry points
* Add a comment around CharSet.Auto
* Update compatibility doc.
* Update docs/design/libraries/DllImportGenerator/Compatibility.md
Co-authored-by: Elinor Fung <elfung@microsoft.com>
Co-authored-by: Elinor Fung <elfung@microsoft.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/design/libraries/DllImportGenerator/Compatibility.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/design/libraries/DllImportGenerator/Compatibility.md b/docs/design/libraries/DllImportGenerator/Compatibility.md index 9a22b6f6ed8..4eee2455edc 100644 --- a/docs/design/libraries/DllImportGenerator/Compatibility.md +++ b/docs/design/libraries/DllImportGenerator/Compatibility.md @@ -20,6 +20,8 @@ The built-in system treats `CharSet.None` as `CharSet.Ansi`. The P/Invoke source [`CallingConvention`](https://docs.microsoft.com/dotnet/api/system.runtime.interopservices.dllimportattribute.callingconvention) will not be supported for `GeneratedDllImportAttribute`. Users will be required to use the new `UnmanagedCallConvAttribute` attribute instead. This attribute provides support for extensible calling conventions and provides parity with the `UnmanagedCallersOnlyAttribute` attribute and C# function pointer syntax. We will enable our conversion code-fix to automatically convert explicit and known calling convention usage to use the `UnmanagedCallConvAttribute`. +[`ExactSpelling`](https://docs.microsoft.com/dotnet/api/system.runtime.interopservices.dllimportattribute.exactspelling) will not be supported for `GeneratedDllImportAttribute`. If `ExactSpelling` is used on an existing `DllImport`, the offered code-fix will provide users with additional options for using `A` or `W` suffixed variants depending on the provided `CharSet` so they can explicitly choose which spelling is correct for their scenario. + ### Required references The following framework references are required: |