.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

相关推荐
滴滴答答哒8 天前
.NET Core 基于 AOP + Polly 实现数据库死锁自动重试
数据库·.netcore·sqlsugar
.NET修仙日记11 天前
.NET EFCore批量插入性能优化实战:30秒 → 0.5秒
性能优化·c#·.net·.netcore·微软技术·efcore·踩坑实录
Kimhill张14 天前
.net core8 WPF 依赖注入(DI)
wpf·.netcore
wangl_9215 天前
C# / .NET 在工业环境中的优势
开发语言·c#·.net·.netcore·.net core·visual studio
豆豆18 天前
信创环境下CMS国产化适配实践:以.NET Core路线为例的技术验证
.netcore·cms·信创·国产化·建站系统·内容管理系统·网站管理系统
时光追逐者18 天前
C#/.NET/.NET Core技术前沿周刊 | 第 70 期(2026年5.01-5.10)
c#·.net·.netcore
van久22 天前
Day20:AutoMapper 对象映射
.netcore
van久23 天前
Day23 登录 + 颁发 Token(DDD 四层架构 + 企业标准)
.netcore
wangl_9224 天前
C#性能优化完全指南 - 从原理到实践
开发语言·性能优化·c#·.net·.netcore·visual studio
宝桥南山1 个月前
GitHub Models - 尝试一下使用GitHub Models
microsoft·ai·微软·c#·github·.netcore