Windows 向 ARM64 (IOT) 申请表格

Windows Forms Application to ARM64 (IOT)

有没有办法将项目转换为 UWP 或我应该使用其他方法?我需要在 Raspberry Pi 3b 上部署一个用 C# 和 VS 编写的 Windows Forms 应用程序到 Windows 10 IOT。我看到过提到转换器,但它似乎用于将应用程序发布到 Windows 商店。

您需要将应用重写为 UWP 应用。您提到的转换器(desktop bridge)将允许打包您的 Windows Forms 应用程序以存储部署到桌面系统,但不适用于 IoT。

Windows 10 IoT 不包括 WinForms 应用程序所依赖的 UI 堆栈。这记录在 Windows 10 IoT Core documentation(为您的场景添加了重点)

No legacy Win32 UI support: IoT Core does not contain APIs to create classic (HWND) Windows. Legacy methods such as CreateWindow() and CreateWindowEx() or any other methods that deal with Windows handles (HWNDs) are not available. Subsequently, frameworks that depend on such APIs including MFC, Windows Forms and WPF, are not supported on IoT Core

如果您的 UI 和底层逻辑是分开的,那么您可以保留全部或大部分逻辑层(UWP 支持 .Net Standard 2.0)并使用 UWP 重写 UI Xaml堆栈。