Upgrade projects to .NET 10 (System.Runtime)#12801
Open
gewarren wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR upgrades a set of snippet projects under System.Runtime*-related APIs to target .NET 10, aligning snippet compilation with newer TFMs as part of the broader cleanup/modernization work tracked in #12513.
Changes:
- Update many C# snippet
.csprojfiles fromnet6.0(and a couple fromnet48/net481) tonet10.0. - Preserve Windows-specific targeting by moving
net6.0-windowstonet10.0-windowswhere applicable.
Reviewed changes
Copilot reviewed 63 out of 63 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| snippets/csharp/System.Runtime/MemoryFailPoint/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime/GCSettings/IsServerGC/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.Versioning/FrameworkName/op_Equality/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.Serialization/SerializationInfo/GetValue/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.Remoting/ObjectHandle/Overview/Project.csproj | Bumps snippet TFM to net10.0 (but snippet appears Remoting/.NET Framework-specific). |
| snippets/csharp/System.Runtime.InteropServices/VariantWrapper/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/TypeLibVarAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/StructLayoutAttribute/Pack/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/StructLayoutAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/RuntimeEnvironment/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/ProgIdAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/OptionalAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/MarshalAsAttribute/SizeParamIndex/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/MarshalAsAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/SecureStringToGlobalAllocAnsi/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/SecureStringToCoTaskMemUnicode/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/SecureStringToCoTaskMemAnsi/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/GetLastWin32Error/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/GetLastPInvokeError/Marshal.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/GetIUnknownForObject/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/GetHRForLastWin32Error/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Marshal/FreeHGlobal/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/LCIDConversionAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/LayoutKind/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/InterfaceTypeAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/InAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/GuidAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/GCHandle/Overview/Project.csproj | Bumps snippet TFM to net10.0-windows. |
| snippets/csharp/System.Runtime.InteropServices/FieldOffsetAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/DllImportAttribute/PreserveSig/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/DllImportAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/DllImportAttribute/EntryPoint/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/DllImportAttribute/.ctor/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/DispIdAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/DispatchWrapper/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/DefaultParameterValueAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/ComVisibleAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/ComSourceInterfacesAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/ComRegisterFunctionAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/ComImportAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/ClassInterfaceType/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/ClassInterfaceAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/CharSet/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/CallingConvention/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/BestFitMappingAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.InteropServices/Attributes/Attributes.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/SuppressIldasmAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/StringFreezingAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/RuntimeHelpers/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/RuntimeHelpers/GetObjectValue/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/RuntimeHelpers/Equals/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/MethodImplAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/DiscardableAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/DependencyAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/DefaultDependencyAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/ConditionalWeakTableTKey,TValue+CreateValueCallback/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/CompilerGlobalScopeAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/CompilationRelaxationsAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/CallerFilePathAttribute/Project.csproj | Bumps snippet TFM to net10.0. |
| snippets/csharp/System.Runtime.CompilerServices/AsyncStateMachineAttribute/Overview/Project.csproj | Bumps snippet TFM to net10.0. |
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.
Contributes to #12513.