使用最新的 Windows 10 Fast Ring build 14316(在 VMware 虚拟机内),我试图使桌面应用程序转换器 https://msdn.microsoft.com/windows/uwp/porting/desktop-to-uwp-run-desktop-app-converter功能工作。
按照建议运行 PowerShell 脚本时:
PS C:\> .\DesktopAppConverter.ps1 -Setup -BaseImage .\BaseImage-14316.wim
我收到错误:
Assert-RequiredFeatureEnabled:致命错误 1000:未安装或启用所需功能。请参阅机器设置说明。
在 C:\MyPath\DesktopAppConverter\converter_util\EnvironmentAssertions.ps1:40 Zeichen:9
当查看提到的源代码时,这一行似乎失败了:
$feature = Get-WindowsOptionalFeature -Online -FeatureName "Containers"
我已经尝试启用各种 Windows 功能,但没有成功。
我的问题:
这个“容器”功能是什么以及如何启用它?
只需在 PowerShell 中运行以下命令:
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All
单击 Y。它将重新启动。之后,你就很好了。
我在 Windows 10 Pro 上运行了该命令。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)