硬件:Raspberry Pi 3B系统:Windows 10 IOT Core应用:.Net Core Web部署流程1. 系统安装1.1 下载并安装 Windows 10 IoT Core Dashboard,使用该工具将 Flash.FFU 映像文件刷入 SD 卡。https://docs.microsof...

硬件:Raspberry Pi 3B
系统:Windows 10 IOT Core
应用:.Net Core Web
部署流程
1. 系统安装
1.1 下载并安装 Windows 10 IoT Core Dashboard,使用该工具将 Flash.FFU 映像文件刷入 SD 卡。
https://docs.microsoft.com/en-us/windows/iot-core/downloads
1.2 Flash.FFU 映像刷入完成后,即可插入树莓派进行 Windows Iot 系统启动。
2. 应用发布
2.1 创建 .Net Core Web 应用,添加 5000 端口监听地址(这里硬编码为Demo测试用)。
2.2 配置发布参数:
Target Framework = netcoreapp 3.0
Deployment Mode = Self-Contained
Target Runtime = win-arm
3. 应用部署
3.1 启用 Windows IoT 的 FTP 管理,将发布文件上传至 Raspberry Pi。
使用 PowerShell 或者 Device Portal 运行命令:
start C:\Windows\System32\ftpd.exe
3.2 配置防火墙。
使用 netsh 工具配置防火墙,命令:
netsh advfirewall firewall add rule name=”ASP.NET Core Web Server port” dir=in action=allow protocol=TCP localport=5000
3.3 启动应用
在 Raspberry Pi 上切换至上传后的 .Net Core Web 应用目录,运行 .exe 即可。
参考资料
https://www.cnblogs.com/zhanggaoxing/p/8452249.html
本文标题为:[IOT] - Raspberry Pi 3B + Windows 10 IOT Core + .Net Core Web 部署


基础教程推荐
- C#获取指定目录下某种格式文件集并备份到指定文件夹 2023-05-30
- C# 解析XML和反序列化的示例 2023-04-14
- Unity shader实现高斯模糊效果 2023-01-16
- Unity 如何获取鼠标停留位置下的物体 2023-04-10
- C#中 Json 序列化去掉null值的方法 2022-11-18
- C#中的Linq to JSON操作详解 2023-06-08
- c# – USING块在网站与Windows窗体中的行为不同 2023-09-20
- C#通过标签软件Bartender的ZPL命令打印条码 2023-05-16
- C#调用摄像头实现拍照功能的示例代码 2023-03-09
- 实例详解C#实现http不同方法的请求 2022-12-26