Conversation
升级多个项目文件中的NuGet包版本,包括`Microsoft.Net.Http.Headers`和`Microsoft.AspNetCore`相关包,以支持.NET 8.0框架。移除不再需要的旧版本引用。在`RequestUtility.Post.cs`中,新增`RequestUtility`静态类,并优化HTTP请求处理逻辑。此更改旨在提高兼容性和稳定性。
更新了多个 .csproj 文件的版本号: - Senparc.CO2NET.APM 从 2.1.1 到 2.1.2 - Senparc.CO2NET.AspNet 从 2.1.0.1 到 2.1.1 - Senparc.CO2NET.Cache.CsRedis.RedLock 从 2.1.0.1 到 2.1.1 - Senparc.CO2NET.Cache.CsRedis 从 2.3.0 到 2.3.1,并重新添加项目属性 - Senparc.CO2NET.Cache.Dapr 从 1.1.0.1 到 1.1.1 - Senparc.CO2NET.Cache.Memcached 从 5.1.0.1 到 5.1.1 - Senparc.CO2NET.Cache.Redis.RedLock 从 4.1.0.1 到 4.1.1 - Senparc.CO2NET.Cache.Redis 从 5.2.0.1 到 5.2.1 - Senparc.CO2NET.MagicObject 从 1.1.0.1 到 1.1.1 - Senparc.CO2NET.WebApi 从 2.1.3 到 2.1.4,并重新添加项目属性 - Senparc.CO2NET 从 3.1.4 到 3.1.5 这些更改可能是为了修复bug、增加新功能或进行其他改进。
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates version numbers across multiple projects in the CO2NET solution and makes a bug fix to stream handling in HTTP POST operations. The primary purpose is to prepare a new release with improved stream positioning logic and dependency updates.
- Version bumps for multiple projects (patch version increments)
- Fixed stream positioning in HTTP POST logic by moving
Seek(0, SeekOrigin.Begin)before the stream length check - Updated
Microsoft.Net.Http.Headerspackage versions across projects and removed redundant test dependencies
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Senparc.CO2NET/Utilities/HttpUtility/HttpPost/RequestUtility.Post.cs | Moved stream seek operation before length check to ensure proper stream positioning |
| src/Senparc.CO2NET/Senparc.CO2NET.csproj | Bumped version to 3.1.5 and updated Microsoft.Net.Http.Headers from 2.2.0 to 2.3.4 |
| src/Senparc.CO2NET.WebApi/Senparc.CO2NET.WebApi.csproj | Updated version to 2.1.4 and removed trailing whitespace |
| src/Senparc.CO2NET.Tests/Senparc.CO2NET.Tests.net8.csproj | Removed redundant Microsoft.Net.Http.Headers package reference |
| src/Senparc.CO2NET.MagicObject/Senparc.CO2NET.MagicObject.csproj | Bumped version to 1.1.1 |
| src/Senparc.CO2NET.Cache.Redis/Senparc.CO2NET.Cache.Redis.csproj | Bumped version to 5.2.1 |
| src/Senparc.CO2NET.Cache.Redis.Tests/Senparc.CO2NET.Cache.Redis.Tests.net8.csproj | Removed redundant Microsoft.Net.Http.Headers package reference |
| src/Senparc.CO2NET.Cache.Redis.RedLock/redlock-cs/src/Senparc.CO2NET.Cache.Redis.RedLock.csproj | Bumped version to 4.1.1 |
| src/Senparc.CO2NET.Cache.Memcached/Senparc.CO2NET.Cache.Memcached.csproj | Bumped version to 5.1.1 |
| src/Senparc.CO2NET.Cache.Dapr/Senparc.CO2NET.Cache.Dapr.csproj | Bumped version to 1.1.1 |
| src/Senparc.CO2NET.Cache.CsRedis/Senparc.CO2NET.Cache.CsRedis.csproj | Bumped version to 2.3.1 |
| src/Senparc.CO2NET.Cache.CsRedis.Tests/Senparc.CO2NET.Cache.CsRedis.Tests.net8.csproj | Removed redundant Microsoft.Net.Http.Headers package reference |
| src/Senparc.CO2NET.Cache.CsRedis.RedLock/redlock-cs/src/Senparc.CO2NET.Cache.CsRedis.RedLock.csproj | Bumped version to 2.1.1 |
| src/Senparc.CO2NET.AspNet/Senparc.CO2NET.AspNet.csproj | Bumped version to 2.1.1 and updated AspNetCore packages from 2.2.0 to 2.3.0 |
| src/Senparc.CO2NET.APM/Senparc.CO2NET.APM.csproj | Bumped version to 2.1.2 |
| Sample/Senparc.CO2NET.Sample.Consoles/Senparc.CO2NET.Sample.Consoles.Net8.csproj | Updated Microsoft.Net.Http.Headers from 2.2.8 to 8.0.0 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.