❔ Unpackaged WinUI 3 app raises 0xc000027b after publish

I do have a problem and I would like to use your help.
My app is not starting after publishing it with following settings.

<?xml version="1.0" encoding="utf-8"?>

<Project>
  <PropertyGroup>
    <Configuration>Debug</Configuration>
    <Platform>x64</Platform>
    <PublishDir>bin\Publish</PublishDir>
    <PublishProtocol>FileSystem</PublishProtocol>
    <_TargetId>Folder</_TargetId>
    <TargetFramework>net7.0-windows10.0.19041.0</TargetFramework>
    <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
    <SelfContained>true</SelfContained>
    <PublishSingleFile>false</PublishSingleFile>
    <PublishReadyToRun>false</PublishReadyToRun>
    <PublishTrimmed>false</PublishTrimmed>
  </PropertyGroup>
</Project>


In the event viewer I can see that the exception 0xc000027b is raised.
Was this page helpful?