<IsPublishable>True</IsPublishable> in your project folder worked for me
It was set to false for some reason?
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ApplicationIcon>Binary.ico</ApplicationIcon>
<IsPublishable>True</IsPublishable>
</PropertyGroup>