基本上選用的都是 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