The error always appears on Windows x64 with RuntimeIdentifier osx-arm64:
<path_net60>\sdk\6.0.100-preview.2.21155.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(99,5): error NETSDK1084: There is no application host available for the specified RuntimeIdentifier 'osx-arm64'.
Repro:
set _PkgDir=C:\1
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
set DOTNET_MULTILEVEL_LOOKUP=0
if not exist "%_PkgDir%" mkdir "%_PkgDir%"
<path_net60>\dotnet.exe publish --packages "%_PkgDir%" --self-contained true -f net6.0 -r osx-arm64
nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget-org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<packageRestore>
<add key="enabled" value="True" />
</packageRestore>
</configuration>