RsCode.AspNetCore
2.0.6
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 RsCode.AspNetCore --version 2.0.6
NuGet\Install-Package RsCode.AspNetCore -Version 2.0.6
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="RsCode.AspNetCore" Version="2.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RsCode.AspNetCore" Version="2.0.6" />
<PackageReference Include="RsCode.AspNetCore" />
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 RsCode.AspNetCore --version 2.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RsCode.AspNetCore, 2.0.6"
#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 RsCode.AspNetCore@2.0.6
#: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=RsCode.AspNetCore&version=2.0.6
#tool nuget:?package=RsCode.AspNetCore&version=2.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
✨ 特性
🌈 MIT开源协议,完全免费使用
📦 开箱即用
💕 集成一些流行的开源框架/库。
🎨 集成第三方平台业务API,例:微信开发,第三方支付,第三方存储,抖音相关开发SDK等
🌈 源码托管
🖥 支持环境
- .NET Core 3.1以上
💿 当前版本
📦 使用RsCode
- 先安装 .NET Core SDK 3.1.300 以上版本
在已有项目中引入 RsCode
进入应用的项目文件夹,安装 Nuget 包引用
$ dotnet add package RsCode --version 2.0.2asp.net core项目引用:
Install-Package RsCode.AspNetCore -Version 2.0.2推荐使用 Visual Studio 2022 开发。
在Program.cs中
using RsCode;
using RsCode.AspNetCore;
using AspectCore.Extensions.DependencyInjection;
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseServiceProviderFactory(new DynamicProxyServiceProviderFactory());
//添加RsCode
builder.Services.AddRsCode();
//自动注册应用接口和实现
string[] assemblies = new string[] { "your.project.Core", "应用程序集名称" }; //todo 替换成实际业务类程序集名称
builder.Services.AutoInject(assemblies);
//添加数据库,以MySql为例
builder.Services.AddDatabase<MySqlDatabaseProvider>();
builder.Services.AddUnitOfWork();
var app = builder.Build();
if (app.Environment.IsDevelopment())
{
//启用swaggerui
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAuthorization();
//异常处理
app.UseErrorHandler();
app.MapControllers();
app.Run();
🔗 文档链接
🤝 如何贡献
如果你希望参与贡献,欢迎 Pull Request,或给我们 报告 Bug 。
❓ 社区互助
如果您在使用的过程中碰到问题,可以通过以下途径寻求帮助,同时我们也鼓励资深用户通过下面的途径给新人提供帮助。
技术人互动群(微信)
<img src="https://www.hnrswl.com/res/static/img/tq.png" width="300" alt="技术赚钱群">
☀️ 授权协议
友情链接
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- AspectCore.Extensions.DataValidation (>= 2.4.0)
- Caching.CSRedis (>= 3.6.5)
- EnyimMemcachedCore (>= 2.4.3)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 2.2.0)
- Microsoft.AspNetCore.Diagnostics (>= 2.2.0)
- Microsoft.AspNetCore.HttpOverrides (>= 2.2.0)
- Microsoft.AspNetCore.Mvc (>= 2.2.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 3.1.31)
- Microsoft.Extensions.Logging.Log4Net.AspNetCore (>= 6.1.0)
- RsCode (>= 2.0.6)
- System.IdentityModel.Tokens.Jwt (>= 6.6.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on RsCode.AspNetCore:
| Package | Downloads |
|---|---|
|
RsCode.Payment
RsCode第三方支付业务API |
|
|
RsCode.Douyin
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.5.2 | 368 | 11/17/2025 |
| 2.3.5 | 346 | 9/19/2025 |
| 2.3.4 | 266 | 6/30/2025 |
| 2.3.3 | 286 | 5/27/2025 |
| 2.3.2 | 286 | 4/3/2025 |
| 2.3.0 | 276 | 3/27/2025 |
| 2.2.4 | 213 | 1/27/2025 |
| 2.2.3 | 230 | 10/29/2024 |
| 2.2.2 | 228 | 10/26/2024 |
| 2.2.0 | 260 | 9/4/2024 |
| 2.1.0 | 240 | 8/29/2024 |
| 2.0.10 | 289 | 6/28/2024 |
| 2.0.6 | 281 | 2/23/2024 |
| 2.0.3 | 309 | 10/10/2023 |
Loading failed
软商网络asp.net core项目开发工具包