C
C#2y ago
Halfbax

❔ 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>
<?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.
2 Replies
Halfbax
HalfbaxOP2y ago
In the csproj I do use this line to public to succeed the publish
<!--Workaround-->
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
<!--Workaround-->
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server