[IOT] - Raspberry Pi 3B + Windows 10 IOT Core + .Net Core Web 部署

硬件: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

原文地址:https://www.cnblogs.com/jinzesudawei/p/11076497.html

时间: 2024-08-17 04:22:45

[IOT] - Raspberry Pi 3B + Windows 10 IOT Core + .Net Core Web 部署的相关文章

【Win10 IoT系列 02】Windows 10 IoT系统刻录和安装

硬件材料: 1.树莓派3B开发板,官方购买方式(新加坡发货):树莓派3 B型 2.8GB及以上MicroSD闪存卡(自行采购,速度快点的那种) 3.输出为5V/2A的电源(如果你的安卓手机充电器输出也是2A,那可以直接拿来用) 4.1块7寸的触摸屏,也可以采购官方的,或者是其他途径自己采购,支持HDMI即可 软件工具: 1.Windows 10 IoT Core系统下载:下载页面(IOS镜像地址) 2.上一篇博客要求的开发环境

如何在Raspberry Pi 3B中安装Windows 10 IoT Core

Windows 10 IoT Core简介 Windows 10 IoT是微软专门为物联网生态打造的操作系统,Windows 10 IoT Core则是Windows 10 IoT 操作系统的核心版本,功能相对精简.使用Windows 10 IoT可以打造属于自己的物联网生态系统. Windows 10 IoT的版本介绍 Windows 10 IoT 企业版 Windows 10 IoT 企业版将 Windows 10 企业版功能广泛应用于零售.制造.医疗.金融和其他行业的设备上.Windows

Windows 10 IoT on Raspberry Pi 2

https://ms-iot.github.io/content/en-US/win10/SetupRPI.htm http://ms-iot.github.io/content/en-US/win10/ReleaseNotes.htm https://ms-iot.github.io/content/en-US/win10/tools/CommandLineUtils.htm https://connect.microsoft.com/windowsembeddedIoT/Downloads/

玩转树莓派——制作包含Windows 10 IoT Core和Raspbian的离线安装介质

How to make Windows 10 IoT Core offline install media for Raspberry Pi 前几天在树莓派上更新Receiver for Linux 13.4,又尝试在Pi上安装Visual Studio Code,结果觉得系统有点不正常了,于是打算重新刷一遍. 之前的系统使用了一张16 GB的TF卡,直接使用NOOBS lite进行在线安装.之前说了这样安装有个好处,就是安装文件本身不占太多的空间,更多的空间可以给系统使用. 可是--下载好慢啊

Windows 10 IoT Core 正式版初体验

今天收到Windows 10 IoT Core Team邮件,Windows 10 IoT Core正式发布. 以下记录了今天在Raspberry Pi 2上的体验过程: 准备工作 一台运行着正版Windows 10且版本不小于10240的个人PC Visual Studio 2015 版本不小于14.0.23107.0 D14Rel Install Visual Studio Community 2015 Visual Studio Tools for Universal Windows Ap

Windows 10 IoT Core Samples

Windows 10 IoT Core Samples Welcome to the Windows 10 IoT Core Samples These samples have been validated on Windows IoT Core November Update (10.0.10586.0): Raspberry Pi 2 MinnowBoard Max DragonBoard 410c These samples have been validated using these

张高兴的 Windows 10 IoT 开发笔记:部署 ASP.NET Core 2 应用

今天是大年初二,都去走亲戚了吧,享受一下这难得的能和亲友相聚的时光.而我就不一样了,今天一回到家就又开始瞎折腾了,哈哈哈. 问题背景 最近花了点时间用 ASP.NET Core 2 写了个个人博客,中间出了好多问题,过程弯弯曲曲的,但好歹最后还是完成部署在阿里云上了.这几天闲的没事看 .NET Core CLI,发现运行时标识符(Runtime IDentifier)居然有 win10-arm,这使我突然萌生了想把我的博客部署在 Raspberry Pi 上.(这就是纯属瞎折腾,部署在 Wind

玩转树莓派——安装 Windows 10 IoT Core

在树莓派上运行过Windows 3.1,自然也想运行Windows 10.于是准备在树莓派上安装一个Windows 10 IoT Core的系统. 写下这篇文字的时候,其实已经不是第一次安装运行Windows 10 IoT Core了.在我生日那天拿到树莓派之后,就立即尝试了一把Windows 10 IoT Core.当时正式的Pi 3的支持还没有发布,使用的是Windows Insider的版本.树莓派3和树莓派2最大的不同,是自带WiFi和蓝牙适配器.而当时Windows 10 IoT的版本

Windows 10 IoT Core 正式版进阶体验

本文接上一篇`Windows 10 IoT Core 正式版初体验`,着重介绍一下,如何使用ssh和powershell或者web方式操作Windows 10 IoT Core,并且给予Windows 10 IoT Core的软件开发. 远程连接 **ssh方式** 保证个人PC和树莓派2在一个网段,使用PuTTY可以直接连接服务器, 默认用户名Administrator,密码[email protected]. 详细的命令行命令可以从这里查阅 **powershell方式** 保证个人PC和树