且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Windows 10 IOT上运行UWP控制台应用程序吗?

更新时间:2023-10-20 17:16:10

Hello Jon,

Hello Jon,

UWP控制台从模板创建的应用程序无法在Windows IoT Core上运行。

The UWP console App which created from the template can not run on Windows IoT Core.

Windows IoT Core支持某些传统的Win32应用程序类型,如Win32控制台应用程序,NT服务和.net核心控制台应用程序。如果控制台应用程序是传统的win32应用程序,它显然只支持C ++。但是如果你想用C#开发一个控制台
应用程序,你可以使用.net核心控制台,这样你需要运行命令来发布ARM的应用程序,然后将release文件夹复制到设备。

Windows IoT Core supports certain traditional Win32 app types such as Win32 Console Apps, NT Services and .net core console app. If the console app is traditional win32 app, it apparently only supports in C++. But if you want to develop a console app with C#, you can use .net core console, in this way, you need to run the command to publish the app for ARM, and then copy the release folder to device.

dotnet publish -r win10-arm

此外,这个  document  显示
如何为您的设备开发应用程序。

***的问候,

Michael