RsCode 2.2.2
dotnet add package RsCode --version 2.2.2
NuGet\Install-Package RsCode -Version 2.2.2
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" Version="2.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RsCode --version 2.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RsCode, 2.2.2"
#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.
// Install RsCode as a Cake Addin #addin nuget:?package=RsCode&version=2.2.2 // Install RsCode as a Cake Tool #tool nuget:?package=RsCode&version=2.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RsCode是快速开发.net应用的工具库,其丰富的功能和易用性,能够显著提高.net开发的效率和质量
✨ 特性
🌈 MIT开源协议,完全免费使用
📦 开箱即用
💕 集成一些流行的开源框架/库。
🎨 集成第三方平台业务API,例:微信开发,第三方支付,第三方存储,抖音相关开发SDK等
🌈 源码托管
🖥 支持环境
- .NET Core 6.0以上
💿 当前版本
📦 使用RsCode
- 先安装 .NET Core SDK 6.0 以上版本
在已有项目中引入 RsCode
进入应用的项目文件夹,安装 Nuget 包引用
$ dotnet add package RsCode --version 2.2.0
asp.net core项目引用:
Install-Package RsCode.AspNetCore -Version 2.2.0
推荐使用 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 | 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- AngleSharp.Css (>= 0.14.1)
- AspectCore.Extensions.Hosting (>= 2.4.0)
- Caching.CSRedis (>= 3.8.800)
- FreeSql.Cloud (>= 1.9.1)
- log4net (>= 2.0.15)
- Mapster (>= 7.3.0)
- MediatR.Extensions.Microsoft.DependencyInjection (>= 10.0.0)
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Caching.Memory (>= 2.1.23)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- PetaPoco.Compiled (>= 6.0.532)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.8)
- System.Collections (>= 4.3.0)
- System.Net.Http.Json (>= 6.0.0)
- System.Runtime.Loader (>= 4.3.0)
- System.Text.Encodings.Web (>= 6.0.0)
- System.Text.Json (>= 6.0.0)
- System.Threading.Channels (>= 6.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on RsCode:
Package | Downloads |
---|---|
RsCode.AspNetCore
https://rscode.cn |
|
RsCode.Storage.QiniuStorage
RsCode 七牛云存储服务 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.2.2 | 83 | 10/29/2024 |
2.2.1 | 115 | 10/23/2024 |
2.2.0 | 164 | 9/4/2024 |
2.1.0 | 105 | 8/29/2024 |
2.0.6 | 338 | 2/23/2024 |
2.0.4 | 831 | 11/9/2023 |
2.0.3 | 198 | 10/10/2023 |
2.0.2 | 230 | 8/5/2023 |
2.0.1 | 256 | 7/2/2023 |
2.0.0 | 250 | 6/27/2023 |
1.6.1 | 320 | 4/30/2023 |
1.6.0 | 1,213 | 11/8/2022 |
1.5.9 | 811 | 9/29/2022 |
1.5.8 | 879 | 5/26/2022 |
1.5.7 | 461 | 5/14/2022 |
1.5.6 | 952 | 3/29/2022 |
1.5.5 | 485 | 11/13/2021 |
1.5.4 | 2,174 | 10/18/2021 |
1.5.3 | 1,306 | 9/20/2021 |
1.5.2 | 449 | 6/14/2021 |
1.5.1 | 1,724 | 2/6/2021 |
1.5.0 | 2,022 | 1/15/2021 |
1.4.7 | 2,937 | 12/25/2020 |
1.4.6 | 1,351 | 12/8/2020 |
1.4.4 | 1,510 | 9/16/2020 |
1.4.3 | 1,516 | 8/20/2020 |
1.4.1 | 539 | 7/14/2020 |
1.3.0 | 1,418 | 4/18/2020 |
1.2.0 | 2,282 | 4/6/2020 |
1.1.0 | 1,541 | 2/27/2020 |
1.0.0 | 1,400 | 6/19/2018 |