Skip to content

Develop#332

Merged
JeffreySu merged 2 commits into
masterfrom
Develop
Oct 28, 2025
Merged

Develop#332
JeffreySu merged 2 commits into
masterfrom
Develop

Conversation

@JeffreySu

Copy link
Copy Markdown
Contributor

No description provided.

升级多个项目文件中的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、增加新功能或进行其他改进。
@JeffreySu JeffreySu requested a review from Copilot October 28, 2025 16:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Headers package 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.

@JeffreySu JeffreySu merged commit 82a523d into master Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants