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

Hardware: Raspberry Pi. 3B

System: Windows 10 IOT Core

Application: .Net Web Core

Deployment Process

1. System Installation

1.1 Download and install the Windows 10 IoT Core Dashboard, use the brush tool Flash.FFU image file into the SD card.

https://docs.microsoft.com/en-us/windows/iot-core/downloads

After 1.2 Flash.FFU brush into the complete image can be inserted into the Raspberry Pi Windows Iot system startup. 

2. Application Published

2.1 Create .Net Core Web applications, add port 5000 to listen address ( here use hard-coded to test Demo ).

Release 2.2 configuration parameters:

Target Framework = netcoreapp 3.0
Deployment Mode = Self-Contained
Target Runtime = win-arm

3. Application deployment

3.1 Enable Windows IoT management of FTP to publish files uploaded to the Raspberry Pi.

Device Portal using PowerShell or run the command:

start C:\Windows\System32\ftpd.exe

3.2 Configuring the firewall.

Use netsh firewall configuration tool, the command:

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

Guess you like

Origin www.cnblogs.com/jinzesudawei/p/11076497.html