And currently we pick up that target name verbatim as pass it along as a valid target framework. That's not the case, apparently, as the correct target framework ought to be net7.0-windows, which the assets file do describe in the frameworks list as a targetAlias:
Adding a target framework as
Will render the framework name in
project.assets.json
asAnd currently we pick up that target name verbatim as pass it along as a valid target framework. That's not the case, apparently, as the correct target framework ought to be
net7.0-windows
, which the assets file do describe in the frameworks list as atargetAlias
:So this PR changes the list of targetFrameworks we work with to use the alias if detected, key name otherwise.