Remove .NET Framework remarks (System.InteropServices)#12670
Merged
gewarren merged 2 commits intoMay 29, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes .NET Framework-specific remarks, examples, and exception text from System.Runtime.InteropServices API reference content as part of the broader cleanup tracked by #12513.
Changes:
- Removes or simplifies references to .NET Framework, CAS/CER, app domains, MDAs, and legacy tooling.
- Removes examples and remarks from obsolete or framework-specific APIs.
- Normalizes some markdown formatting and wording in interop documentation.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| xml/System.Runtime.InteropServices/VariantWrapper.xml | Removes legacy .NET Framework variant marshaling notes. |
| xml/System.Runtime.InteropServices/UnmanagedType.xml | Simplifies remarks and removes framework link text. |
| xml/System.Runtime.InteropServices/StructLayoutAttribute.xml | Removes .NET Framework layout comparison. |
| xml/System.Runtime.InteropServices/SEHException.xml | Replaces .NET Framework wording with .NET wording. |
| xml/System.Runtime.InteropServices/SafeHandle.xml | Removes framework-specific MDA text and updates wording. |
| xml/System.Runtime.InteropServices/SafeBuffer.xml | Removes CER wording and updates code fence language. |
| xml/System.Runtime.InteropServices/RuntimeInformation.xml | Removes framework/native entries from framework description remarks. |
| xml/System.Runtime.InteropServices/RuntimeEnvironment.xml | Removes obsolete API remarks/examples and simplifies PNSE text. |
| xml/System.Runtime.InteropServices/NativeLibrary.xml | Removes .NET 5+ qualifier from native library loading behavior. |
| xml/System.Runtime.InteropServices/Marshal.xml | Removes framework-specific allocator, HRESULT, P/Invoke, RCW, and exception guidance. |
| xml/System.Runtime.InteropServices/DllImportAttribute.xml | Removes framework-only constructor remarks and simplifies SetLastError guidance. |
| xml/System.Runtime.InteropServices/CriticalHandle.xml | Removes CER/ReliabilityContract guidance and updates wording. |
| xml/System.Runtime.InteropServices/ComUnregisterFunctionAttribute.xml | Removes Regasm/.NET Framework registration wording. |
| xml/System.Runtime.InteropServices/ComRegisterFunctionAttribute.xml | Removes Regasm/.NET Framework registration wording and normalizes bullets. |
| xml/System.Runtime.InteropServices/ClassInterfaceType.xml | Normalizes markdown whitespace and removes version qualifier. |
| xml/System.Runtime.InteropServices.ComTypes/IPersistFile.xml | Normalizes markdown whitespace and updates one COM API reference. |
| xml/System.Runtime.InteropServices.ComTypes/CALLCONV.xml | Normalizes bullet spacing and replaces framework wording. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.NET Framework API ref has moved to its own repo (https://github.com/dotnet/dotnetfw-api-docs), so we can clean up .NET Framework remarks, exceptions, and code examples out of this repo. Contributes to #12513.
Removes remarks and examples related to:
Also removes all remarks from obsolete APIs.
Hide whitespace changes