It should be possible to write code that lights up when a given higher-level framework, like ASP.NET Core or Windows Desktop is available.
I ran into this with PowerShell. Some variants depend on Microsoft.WindowsDesktop.App and others Microsoft.NetCore.App. Ideally, all variants would depend on the latter and light up on the former (when running on Windows).
It should be possible to write code that lights up when a given higher-level framework, like ASP.NET Core or Windows Desktop is available.
I ran into this with PowerShell. Some variants depend on
Microsoft.WindowsDesktop.App
and othersMicrosoft.NetCore.App
. Ideally, all variants would depend on the latter and light up on the former (when running on Windows).Current behavior when you rewrite the
pwsh.runtimeconfig.json
toMicrosoft.NetCore.App
: https://github.com/PowerShell/PowerShell/issues/12550Current
pwsh.runtimeconfig.json
when distributed as a .NET tool: