OpenRobot.Framework.Common 2.0.0

dotnet add package OpenRobot.Framework.Common --version 2.0.0
                    
NuGet\Install-Package OpenRobot.Framework.Common -Version 2.0.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="OpenRobot.Framework.Common" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenRobot.Framework.Common" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="OpenRobot.Framework.Common" />
                    
Project file
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 OpenRobot.Framework.Common --version 2.0.0
                    
#r "nuget: OpenRobot.Framework.Common, 2.0.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 OpenRobot.Framework.Common@2.0.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=OpenRobot.Framework.Common&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=OpenRobot.Framework.Common&version=2.0.0
                    
Install as a Cake Tool

OpenRobot.Framework.Common

NuGet .NET

OpenRobot.Framework.Common 是 OpenRobot Web 框架的公共组件库,为基于 ASP.NET Boilerplate (ABP) 的应用程序提供基础的共享功能和配置。

主要特性

  • ABP 框架集成 - 提供 ASP.NET Boilerplate v9.4.2 框架的核心集成
  • Swagger 文档生成 - 集成 Swashbuckle.AspNetCore.SwaggerGen 用于自动生成 API 文档
  • 共享配置 - 为 Web 框架各层提供通用的配置和扩展方法
  • 依赖注入支持 - 支持 ABP 的依赖注入和模块化架构

安装

dotnet add package OpenRobot.Framework.Common

或在 Visual Studio 的 NuGet 包管理器控制台中运行:

Install-Package OpenRobot.Framework.Common

快速开始

在模块中使用

using Abp.Modules;

public class MyModule : AbpModule
{
    public override void Initialize()
    {
        IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
    }
}

配置 Swagger

该库通过 Swashbuckle.AspNetCore.SwaggerGen 提供 Swagger/OpenAPI 文档生成功能。

依赖项

包名 版本 用途
Abp 9.4.2 ASP.NET Boilerplate 框架
Swashbuckle.AspNetCore.SwaggerGen 7.2.0 Swagger 文档生成

系统要求

  • .NET 8.0 或更高版本

在框架中的位置

OpenRobot.Framework.Web.Host (Startup)
    -> OpenRobot.Framework.Web.Core
        -> OpenRobot.Framework.Application
            -> OpenRobot.Framework.Common ✓
        -> OpenRobot.Framework.EntityFrameworkCore
            -> OpenRobot.Framework.Common ✓

相关模块

  • OpenRobot.Framework.Core - 领域实体和业务逻辑
  • OpenRobot.Framework.Application - 应用程序服务层
  • OpenRobot.Framework.Web.Core - Web 层核心组件

许可证

本项目采用 MIT 许可证。

作者

OpenRobot

反馈与贡献

欢迎通过以下方式提供反馈:

  • 提交 Issue
  • 发起 Pull Request
  • 联系维护者
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on OpenRobot.Framework.Common:

Package Downloads
OpenRobot.Framework.Core

OpenRobot.Framework.Core 是框架的核心业务层,包含领域实体、业务逻辑和本地化资源

OpenRobot.Framework.EFCommon

OpenRobot.Framework.EFCommon 是 Entity Framework Core 共享配置库,为框架提供统一的数据访问层配置

OpenRobot.Framework.Application

OpenRobot.Framework.Application 是应用程序服务层,包含 DTO、应用服务和 AutoMapper 配置

OpenRobot.Framework.EntityFrameworkCore

OpenRobot.Framework.EntityFrameworkCore 是数据访问层,提供 Entity Framework Core 的实现、数据库迁移和仓储模式

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 47 6/5/2026
1.2.0 42 6/5/2026
1.1.0 183 4/24/2026
1.0.1 180 4/21/2026