![]() |
VOOZH | about |
dotnet add package RsCode --version 2.3.5
NuGet\Install-Package RsCode -Version 2.3.5
<PackageReference Include="RsCode" Version="2.3.5" />
<PackageVersion Include="RsCode" Version="2.3.5" />Directory.Packages.props
<PackageReference Include="RsCode" />Project file
paket add RsCode --version 2.3.5
#r "nuget: RsCode, 2.3.5"
#:package RsCode@2.3.5
#addin nuget:?package=RsCode&version=2.3.5Install as a Cake Addin
#tool nuget:?package=RsCode&version=2.3.5Install as a Cake Tool
RsCode是快速开发.net应用的工具库,其丰富的功能和易用性,能够显著提高.net开发的效率和质量
🌈 MIT开源协议,完全免费使用
📦 开箱即用
💕 集成一些流行的开源框架/库。
🎨 集成第三方平台业务API,例:微信开发,第三方支付,第三方存储,抖音相关开发SDK等
进入应用的项目文件夹,安装 Nuget 包引用
$ dotnet add package RsCode --version 2.3.2
asp.net core项目引用:
Install-Package RsCode.AspNetCore -Version 2.3.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());
builder.Services.AddControllers().AddControllersAsServices();
//添加RsCode
builder.Services.AddRsCode();
//自动注册应用接口和实现
string[] assemblies = new string[] { "your.project.Core", "应用程序集名称" }; //todo 替换成实际业务类程序集名称
builder.Services.AutoInject(assemblies);
//添加数据库,以MySql为例
builder.Services.AddDatabase(FreeSql.DataType.MySql, "DefaultConnection");
//添加unitofwork
builder.Services.AddUnitOfWork();
//添加插件支持
builder.Services.AddPlugins();
var app = builder.Build();
if (app.Environment.IsDevelopment())
{
//启用swaggerui api文档
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAuthorization();
//异常处理
app.UseErrorHandler();
//添加插件支持
app.UsePlugins(builder.Environment);
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "areas",
pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}");
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
app.Run();
如果你希望参与贡献,欢迎 Pull Request,或给我们 报告 Bug 。
如果您在使用的过程中碰到问题,可以通过以下途径寻求帮助,同时我们也鼓励资深用户通过下面的途径给新人提供帮助。
作者微信:runsoft1024
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on RsCode:
| Package | Downloads |
|---|---|
|
RsCode.AspNetCore
https://rscode.cn |
|
|
RsCode.Storage.QiniuStorage
RsCode 七牛云存储服务 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.5 | 911 | 11/14/2025 |
| 2.3.4 | 819 | 6/30/2025 |
| 2.3.3 | 807 | 5/27/2025 |
| 2.3.2 | 777 | 4/8/2025 |
| 2.3.1 | 835 | 4/3/2025 |
| 2.3.0 | 813 | 3/27/2025 |
| 2.2.4 | 761 | 1/27/2025 |
| 2.2.3 | 747 | 11/11/2024 |
| 2.2.2 | 761 | 10/29/2024 |
| 2.2.1 | 800 | 10/23/2024 |
| 2.2.0 | 815 | 9/4/2024 |
| 2.1.0 | 774 | 8/29/2024 |
| 2.0.6 | 1,078 | 2/23/2024 |
| 2.0.4 | 1,505 | 11/9/2023 |
| 2.0.3 | 816 | 10/10/2023 |
| 2.0.2 | 872 | 8/5/2023 |
| 2.0.1 | 873 | 7/2/2023 |
| 2.0.0 | 885 | 6/27/2023 |
| 1.6.1 | 979 | 4/30/2023 |