RsCode.AspNetCore 1.6.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package RsCode.AspNetCore --version 1.6.1
NuGet\Install-Package RsCode.AspNetCore -Version 1.6.1
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="1.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RsCode.AspNetCore --version 1.6.1
#r "nuget: RsCode.AspNetCore, 1.6.1"
#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.AspNetCore as a Cake Addin
#addin nuget:?package=RsCode.AspNetCore&version=1.6.1

// Install RsCode.AspNetCore as a Cake Tool
#tool nuget:?package=RsCode.AspNetCore&version=1.6.1

RsCode

一款开箱即用的.net工具库,助力.net开发。

✨ 特性

  • 🌈 基于最新的.net技术。
  • 📦 开箱即用的工具库。
  • 💕 集成一些流行的开源框架/库。
  • 🎨 统一的异常处理
  • 🛡 高效的第三方业务库,例:微信开发,微信支付 ,第三方存储等
  • ⚙️ 基于 .NET Standard 2.1/.NET 6,可直接引用丰富的 .NET 类库。
  • 🎁 可与已有的 ASP.NET Core MVC、Razor Pages 项目无缝集成。

🌈 源码托管

🖥 支持环境

  • .NET Core 3.1以上

💿 当前版本

  • 正式发布: RsCode

📦 安装

在已有项目中引入 RsCode

  • 进入应用的项目文件夹,安装 Nuget 包引用

    $ dotnet add package RsCode --version 1.6.1
    
  • asp.net core项目引用:

    Install-Package RsCode.AspNetCore -Version 1.6.1
    

    推荐使用 Visual Studio 2022 开发。

⚙️使用

使用RsCode时,必要的项目配置 di,mediatR,异常日志

using RsCode;
using RsCode.AspNetCore;
using AspectCore.Configuration;
using AspectCore.Extensions.Hosting;
using AspectCore.Extensions.DataAnnotations;
using MediatR;

var builder = WebApplication.CreateBuilder(args);
//添加di
builder.Host.UseServiceContext(o =>
{
    var p = Predicates.ForService("Rswl.*"); //your project namespace
    o.AddDataAnnotations(p);
});
//添加日志
builder.Host.ConfigureLogging(logging =>
{
    logging.AddLog4Net();
});
//添加mediatR
builder.Services.AddMediatR(typeof(Program).Assembly);
//添加rscode
builder.Services.AddRsCode();

//自动注册接口和实现
builder.Services.AutoRegister("myproject.Core"); //your project name
builder.Services.AutoRegister("myproject.Application");

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI();
}

app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAuthorization();
//异常处理
app.UseErrorHandler();
app.MapControllers();

app.Run();

🔗 文档链接

🤝 如何贡献

PRs Welcome

如果你希望参与贡献,欢迎 Pull Request,或给我们 报告 Bug

❓ 社区互助

如果您在使用的过程中碰到问题,可以通过以下途径寻求帮助,同时我们也鼓励资深用户通过下面的途径给新人提供帮助。

  • gitee

  • 技术人互动群(微信)
    <img src="https://www.hnrswl.com/res/static/img/tq.png" width="300" alt="技术赚钱群">

  • QQ群957285164 QQ群244416471

☀️ 授权协议

RsCode

友情链接

稀缺资源下载 网络工具箱

Product 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.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0.6 105 2/23/2024
2.0.3 151 10/10/2023
2.0.2 150 8/5/2023
2.0.1 198 7/2/2023
1.6.1 209 4/30/2023
1.6.0 364 11/8/2022
1.5.9 493 9/29/2022
1.5.8 564 5/26/2022
1.5.6 708 3/30/2022
1.5.4 1,353 10/18/2021
1.5.3 1,167 9/20/2021
1.5.1 1,410 2/6/2021
1.5.0 1,326 1/16/2021
1.4.7 1,230 12/25/2020
1.1.0 1,448 2/27/2020
1.0.52 1,421 12/12/2019
1.0.51 1,369 11/18/2019
1.0.50 1,434 11/16/2019
1.0.42.1 1,388 11/10/2019
1.0.42 1,364 11/10/2019
1.0.41 1,363 10/25/2019
1.0.11 1,413 8/25/2019
1.0.10 1,483 5/22/2019
1.0.9 1,436 5/22/2019
1.0.0 1,726 6/20/2018

软商网络asp.net core项目开发工具包