• C# 第三方库


    基本上选用的都是 https://www.nuget.org 分类中最流行的那个库 

    1. 日志工具库

    NLOG 

    Stackify.com 简单入门文章  https://stackify.com/nlog-vs-log4net-vs-serilog/

    NLog 支持结构化log输出, 下面是两种写法: 

    # json format log
    logger.Info("{@actionDetails}", new {person="harry", action="buy a book", book="Master C# in 21 days"});
    
    #key=value format log 
    logger.Info("{actionDetails}", new {person="harry", action="buy a book", book="Master C# in 21 days"});

    2. REST 客户端

    RestSharp

    3. JSON 处理

    Newtonsoft.Json

    4. ORM 工具

    Dapper   https://dapper-tutorial.net/

    5. 嵌入数据库

    System.Data.SQLite

    6. 条码/二维码

    QRCoder 和 ZXing.Net 

    7. 串口通讯

    https://www.nuget.org/packages/GodSharp.SerialPort/

    8. 报表

    FastReport.OpenSource  https://www.nuget.org/packages/FastReport.OpenSource/

    https://github.com/FastReports/FastReport/releases

    9. 组件包(winform)

      澳洲 ComponentFactory 出品的 Krypton , 2006~2014年是商业组件包, 由于销售不佳, 现在已经转为开源,  可见开发工具厂商即使是在澳洲,  也不太好生存. 

      https://github.com/ComponentFactory/Krypton

     这个仓库有nuget 的下载链接,  https://github.com/Wagnerp/Krypton-NET-Version-Dashboard

    nuget 下载 Wagnerp 发布的, 注意版本 naming rule ,比如 Wagnerp Krypton 版本 5.472 对应的是.Net 4.7.2

    10. Docking 控制组件  (WinForm)

      Krypton 包也包含dock panel, 这个 dockpanelsuite 组件包, 这个是 WeifenLuo.WinFormsUI.Docking 后续版本

      https://github.com/dockpanelsuite/dockpanelsuite

      简单入门: 开源组件 DockPanelSuite使用

    11. Grid 组件(WinForm)

     AdvancedDataGridView

    12. Winform 下工控组件包

    nuget  HZH_Controls

    有一些很实用的通用组件, 更有一些工控类控件, 而且开源, 

    冰封一夏的作品, 文档 https://gitee.com/kwwwvagaa/net_winform_custom_control

    12. winform 下的 AGauge

    https://www.nuget.org/packages/AGauge_V2/2.0.2

    https://github.com/Code-Artist/AGauge

    13. WPF 下的 Gauge

    https://www.nuget.org/packages/CircularGauge#

    14. WPF 下的 Chart  , 微软的 InteractiveDataDisplay

    https://www.nuget.org/packages/InteractiveDataDisplay.WPF/

    15. WPF 组件包(非商业免费)

       nuget Panuon.UI.Silver

       nuget HandyControl

    16. Winform/WPF/Xamarin 下的 chart

    oxyplot

    17. Redis 客户端 StackExchange.Redis

        StackExchange.Redis 是 Stackoverflow 公司开源的, 质量有保证.

    18.  轻量级的Web 框架 Nancy 和 Nancy.Hosting.Self

         引入 Nancy 不是开发 Web 应用,  是开发 RPC 服务器,  Nancy 是一个轻量级的Web 框架, Nacy.Hosting.Self 是一个轻量级的Web 服务器.

    19. Winform 下的 RichTextBox 增强

        https://www.nuget.org/packages/RichTextBoxEx

    20. Template engine 选 scriban, 语法和 Jinja2/Liquid 类似

        https://github.com/lunet-io/scriban

    21. syntax highlight text editor

    https://github.com/StefH/ICSharpCode.TextEditorEx

    22.  diagram 

    https://github.com/dalssoft/diagramnet

    23. litedb, 嵌入型的mongodb

    https://www.litedb.org/

  • 相关阅读:
    ubuntu18.04 切换python版本
    chart
    tox -e py27报错
    ubuntu 18.04配置静态ip,解决无法上网问题,解决resolv.conf配置文件被覆盖
    ubuntu 18.04输入法问题
    openstack 王者归来学习笔记
    nova client和nova restfull api区别
    nova-api nova-compute 启动服务的时候有的没有加配置文件有的加了
    go语言基本语法
    【转】 Docker和CI/CD实战
  • 原文地址:https://www.cnblogs.com/harrychinese/p/CSharp_3rd_lib.html
Copyright © 2020-2023  润新知