.NET core 5.0 及以上的Windows Service开发

首先,一定要和.NET Framework区分开,

详细请看微软的2023年的最新官方文档

Create Windows Service using BackgroundService - .NET | Microsoft Learn

Create a Windows Service installer - .NET | Microsoft Learn

同样微软的官方微博给出了开发示例:一个基于AI 图片自动分类的Windows Service应用 (ML.NET代码)

Creating a Windows Service with C#/.NET5 - #ifdef Windows

GitHub - azchohfi/ImageClassifierSample

References:

Tutorial: Automated visual inspection using transfer learning - ML.NET | Microsoft Learn

相关推荐
1-1=03 天前
ASP.NET Core 自定义容器 和 自定义日志
asp.net·.netcore
1-1=04 天前
ASP.NET Core HTTP 请求管道
.netcore
宝桥南山11 天前
Visual Studio - 记录一个Visual Studio 2026(Insiders)的更新问题
windows·microsoft·微软·.net·.netcore·visual studio
1-1=01 个月前
C# 数据结构和特殊类型
数据结构·c#·.net·.netcore
1-1=01 个月前
C# IO和序列化
c#·.net·.netcore
宝桥南山1 个月前
.NET 11 - 尝试一下Blazor中的新特性SupplyParameterFromTempData
microsoft·微软·c#·asp.net·.net·.netcore
1-1=01 个月前
C# 特性(Attribute)
c#·.net·.netcore
淡海水1 个月前
10-01-互操作-C#与C++边界的内存管理
unity·c#·游戏引擎·.netcore·gc
1-1=01 个月前
C# 反射
c#·.net·.netcore
1-1=01 个月前
C# 泛型
c#·.net·.netcore