我编写了一个基本的.NET应用程序,它有两个按钮和两个标签,可以自动执行多个批处理文件。该程序在Windows和Windows的PowerShell上正常工作。
但是,我使用PowerShell创建了一个Windows PE USB,当我尝试使用Powershell 5.0从Windows PE启动我的应用程序时,我收到以下错误:
Program "WinImageSetup.exe" failed to run: The subsystem needed to support the image type is not presentAt line: 1 char: 1
+ E:\WinImageSetup.exe
+-------------------
At line:1 char:1
+ E:\WinImageSetup.exe
+--------------------
+CategoryInfo: ResourceUnavailable: (:) [], ApplicationFailedException
+FullyQualifiedErrorId: NativeCommandFailed
从Windows PE Powershell运行.NET应用程序有什么我缺少的吗?