Publishing a WPF application as a single executable does not work for .NET 5 (using ArcGIS Runtime 100.12) or .NET 6 (using ArcGIS Runtime 100.13). There are 11 files and a folder in the target folder. The application can be started, but the map will not work. If the exe is moved to another folder it cannot be started.
Publishing the WPF application as a single executable works for .NET Core 3.1 (using ArcGIS Runtime 100.12).
I used Visual Studio 2022 (17.0.5) in all cases and the following publishing settings:
Configuration: Release | Any CPU
Target framework: net6.0-windows10.0.18362 / net5.0-window10.0.18362.0 / netcoreapp3.1
Deployment mode: Self-contained
Target runtime: win-x64
File publish options:
Produce single file: Checked
Enable ReadyToRun compilation. Unchecked
Trim unused code: Unchecked
Have I missed something that needs to be changed for it to work with .NET 5 and .NET 6?