Furion.Component.Hosting 5.0.0-preview.1.20230630.1

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

// Install Furion.Component.Hosting as a Cake Tool
#tool nuget:?package=Furion.Component.Hosting&version=5.0.0-preview.1.20230630.1&prerelease                

先知

一个应用程序框架,您可以将它集成到任何 .NET/C# 应用程序中。


开发背景

当前的 Furion v4 版本已经变得成熟且稳定,但仍存在以下问题:

  • 早期开发进展迅速,很多代码存在仓促上线的情况,缺乏充分思考和考虑
  • 所有模块都包含在一个项目中,无法按需加载和安装
  • 过度使用静态类和静态内存存储,不利于进行单元测试和数据隔离
  • 对于 .NET Core 的掌握程度有限,导致历史代码臃肿且高度耦合
  • 代码架构和设计模式缺乏统一性,可以说是一个杂烩
  • 在早期对用户需求掌握不足,导致后期不断打补丁来进行改进,稍有改动就可能引发破坏性的修改
  • 模块、类型、属性、方法、属性等命名混乱,很难从字面上理解其功能含义
  • 框架示例混乱,用户只能自行摸索最佳实践
  • 虽有单元测试,但是非常混乱

框架技术

Furion v5 版本采用 C# 12 和 .NET 8 进行开发。

开发指导

  • 实现完全无第三方依赖(除微软官方提供外)
  • 实现彻底模块化,每个模块都是独立的项目
  • 每个模块的单元测试覆盖率要达到 92%以上
  • 确保每个类型、属性、字段、方法都有详细的注释
  • 尽可能避免使用静态内存存储
  • 所有模块都采用上下文和构建器模式进行设计
  • 所有模块都采用依赖注入/控制反转的设计模式
  • 尽可能为每个模块提供看板功能
  • 提供所有模块最佳实践示例

模块状态

模块名称 状态 单元测试 文档
Furion.Core ⚠️
Furion.DependencyInjection ⚠️
Furion.DependencyInjection.Named ⚠️
Furion.Component.AspNetCore ⚠️
Furion.Component ⚠️
Furion.Component.AspNetCore ⚠️
Furion.Component.Hosting ⚠️
Furion.Configuration ⚠️
Furion.Configuration.ManifestResource ⚠️

状态说明

图标 描述
⚠️ 待定
进行中
完成
💔 随时抛弃
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.0-preview.1.20240813.1 68 8/13/2024
5.0.0-preview.1.20231116.1 178 11/16/2023
5.0.0-preview.1.20230826.1 100 8/25/2023
5.0.0-preview.1.20230824.1 77 8/23/2023
5.0.0-preview.1.20230822.1 80 8/21/2023
5.0.0-preview.1.20230805.2 87 8/5/2023
5.0.0-preview.1.20230805.1 89 8/4/2023
5.0.0-preview.1.20230804.2 87 8/4/2023
5.0.0-preview.1.20230804.1 87 8/3/2023
5.0.0-preview.1.20230801.1 89 8/1/2023
5.0.0-preview.1.20230731.4 86 7/31/2023
5.0.0-preview.1.20230731.3 86 7/31/2023
5.0.0-preview.1.20230731.2 85 7/30/2023
5.0.0-preview.1.20230731.1 84 7/30/2023
5.0.0-preview.1.20230730.1 85 7/29/2023
5.0.0-preview.1.20230729.1 87 7/28/2023
5.0.0-preview.1.20230728.2 87 7/28/2023
5.0.0-preview.1.20230728.1 85 7/27/2023
5.0.0-preview.1.20230727.1 82 7/27/2023
5.0.0-preview.1.20230726.1 89 7/26/2023
5.0.0-preview.1.20230724.1 92 7/24/2023
5.0.0-preview.1.20230722.1 98 7/21/2023
5.0.0-preview.1.20230720.4 89 7/20/2023
5.0.0-preview.1.20230720.1 88 7/19/2023
5.0.0-preview.1.20230719.1 82 7/18/2023
5.0.0-preview.1.20230718.4 90 7/18/2023
5.0.0-preview.1.20230718.3 86 7/18/2023
5.0.0-preview.1.20230718.2 85 7/18/2023
5.0.0-preview.1.20230718.1 87 7/17/2023
5.0.0-preview.1.20230717.1 90 7/16/2023
5.0.0-preview.1.20230716.1 85 7/15/2023
5.0.0-preview.1.20230715.1 84 7/14/2023
5.0.0-preview.1.20230713.1 87 7/12/2023
5.0.0-preview.1.20230711.1 81 7/11/2023
5.0.0-preview.1.20230710.1 87 7/10/2023
5.0.0-preview.1.20230707.2 90 7/7/2023
5.0.0-preview.1.20230707.1 86 7/6/2023
5.0.0-preview.1.20230704.1 85 7/3/2023
5.0.0-preview.1.20230701.3 86 7/2/2023
5.0.0-preview.1.20230701.2 87 6/30/2023
5.0.0-preview.1.20230701.1 84 6/30/2023
5.0.0-preview.1.20230630.1 85 6/29/2023
5.0.0-preview.1.20230621.8 82 6/20/2023
5.0.0-preview.1.20230620.32 83 6/20/2023
5.0.0-preview.1.20230620.30 78 6/20/2023
5.0.0-preview.1.20230619.53 79 6/19/2023
5.0.0-preview.1.20230618.10 84 6/17/2023
5.0.0-preview.1.20230611.65 89 6/11/2023
5.0.0-preview.1.20230609.11 80 6/9/2023