Create Developer-.NET10 branch: Upgrade .NET 8.0 to .NET 10.0 while maintaining full compatibility #3190
+19,292
−39
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.
This PR implements a comprehensive upgrade from .NET 8.0 to .NET 10.0 across the entire WeiXinMPSDK project while maintaining full backward compatibility and preserving all existing code logic.
Changes Made
Project Files
.net10.csproj
files by copying and updating all existing.net8.csproj
filesnet8.0
tonet10.0
in single-target projectsnet462;netstandard2.0;netstandard2.1;netcoreapp3.1;net8.0
to includenet10.0
.net10.csproj
files instead of.net8.csproj
LangVersion 9.0
toLangVersion 10.0
where applicableSample Projects
/Samples/All/net10-mvc/
Senparc.Weixin.Net10Sample.CommonService.csproj
)Senparc.Weixin.MP.Sample.Consoles.net10.csproj
)Documentation Updates
/Samples/All/net10-mvc/readme.md
Key Features
Verification
.net8.csproj
references remain in.net10.csproj
filesnet10.0
.net10.csproj
filesImpact
This upgrade enables developers to use the latest .NET 10.0 features while maintaining full backward compatibility. The existing .NET 8.0 codebase remains untouched, ensuring no disruption to current users while providing a clear migration path to .NET 10.0.
The branch
Developer-.NET10
now contains a complete .NET 10.0 version of the entire WeiXinMPSDK ecosystem, ready for testing and deployment when .NET 10 is officially released.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.