Crping.AliOss
2.3.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Crping.AliOss --version 2.3.0
NuGet\Install-Package Crping.AliOss -Version 2.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Crping.AliOss" Version="2.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Crping.AliOss" Version="2.3.0" />
<PackageReference Include="Crping.AliOss" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Crping.AliOss --version 2.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Crping.AliOss, 2.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Crping.AliOss@2.3.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Crping.AliOss&version=2.3.0
#tool nuget:?package=Crping.AliOss&version=2.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Crping.AliOss
阿里云OSS小工具
版本更新说明
2.3.0
2026年11月25日 星期三
- 新增方法
DownloadFile,按对象键下载到目标流;对象不存在返回false,其余失败仍抛SDK异常 - 新增方法
GetSignedUrl,按对象键生成 HTTP GET 预签名地址,用于私有桶短时对外展示 - 预签名过期时间以 UTC 为基准,
expireMinutes非正数抛ArgumentOutOfRangeException - 离线单元测试补充上述方法的参数验证、未初始化状态与过期时间窗口断言;集成测试补充下载存在/不存在对象的用例
2.1.1
2026年9月14日 星期一
- 方法
UploadFile新增可选参数contentType,用于显式设置对象内容类型 - 新增离线单元测试
OssOfflineTests,可用dotnet test --filter TestCategory=Offline安全运行;集成测试标记TestCategory=Integration - 补全方法
Signature的XML文档
2.1.0
2026年9月14日 星期一
- 新增依赖注入扩展
AliOssDI.AddAliOss - 删除文件列表
DeleteFiles改用批量删除接口(每批最多 1000 个),并移除冗余的存在性预检 - 构造方法
Oss(OssOptions)与SetOption增加配置完整性校验(fail-fast) OssClient按配置名缓存,配置切换原子生效- 完善 NuGet 元数据(中文描述、
RepositoryUrl、标签)
2.0.0
2026年1月4日 星期日
- 升级为
.net10.0 - 优化代码
1.6.1
2023年10月18日 星期三
- 将方法
SetOption添加到接口
1.6.0
2023年10月18日 星期三
- 新增属性
OptionDic - 新增方法
SetOption - 新增构造方法
Oss(IConfiguration configuration) - 方法添加
null验证
1.5.0
2023-08-08
- 签名方法
Signature添加参数maxSize,expireMinutes
1.4.0
2023-08-08
- 重构签名方法
Signature
1.3.0
2023-08-02
- 修改配置节属性名为
ConfigSection - 优化参数验证
- 修改签名输出对象属性
1.2.0
2022-09-27
- 删除
OssConfig,修改OssOptions
1.1.1
2022-09-26
- 删除不必要的引用
- 创建测试项目,并简单测试
1.1.0
2022-09-26
- 重构
OssConfig,Oss操作等大部分代码 - 修改默认配置节名称
1.0.0
2022-09-23
- 实现常用功能
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Aliyun.OSS.SDK.NetCore (>= 2.14.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.