Search code examples
uwpwindows-store-appsdesktop-bridgedesktop-app-converter

Desktop App Converter Feature Containers Not Available


enter image description hereI'm trying to convert my app to a Windows 10 Appx

C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_1.0.1.0_x64__8wekyb3d8bbwe\DesktopAppConverter.ps1 : DesktopAppConverter : error 'E_FEATURE_NOT_AVAILABLE': Required Windows Feature 'Containers' is not available on your system. Please refer to converter system requirements at https://aka.ms/converterdocs. At line:1 char:1 + &'C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_1.0.1.0_ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DesktopAppConverter.ps1

Do you know how to fix this?

I am using the CMD entry point. My OS is Windows 10 Home 14393


Solution

  • From the How to add Containers to Windows 10, we can do this.

    1. Open Control Panel.
    2. Click on Programs.
    3. Click on Turn Windows Features on or off.
    4. Check the Containers option.
    5. Click Ok.
    6. Click Restart to complete the task.

    I also suggest you to use Desktop App Converter tool that enables you to bring your existing desktop apps written for .NET 4.6.1 or Win32 to the Universal Windows Platform(UWP).

    Please note that some system requirements you should meet.

    1. Windows 10 Anniversary Update(10.0.14393.0 and later) Pro or Enterprise edition.
    2. 64 bit(x64) processor.
    3. Hardware-assisted virtualization.
    4. Second Level Address Translation(SLAT).
    5. Windows Software Development Kit(SDK) for Windows 10.
    6. Download the DesktopAppConverter and the base image .wim file that matched your build.

    More detailed information you could refer to Desktop App Converter.