Improve KnownFrameworkReference workarounds in templatetests.props.in #14895
Labels
affected-very-few
This issue impacts very few customers
area-infrastructure
Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Done
This issue has been fixed
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
severity-nice-to-have
This label is used by an internal tool
Milestone
462acbe#diff-a0bc203ab59b1a2f006b56858a20684b removed the
TargetFramework
metadata from theKnownFrameworkReference
workarounds intemplatetests.props.in
. We need these workarounds in order to reference the desired versions of Microsoft.Netcore.App (the one we depend on in versions.props, rather than the one the SDK depends on). However, the current workaround modifies the metadata for allKnownFrameworkReference
items forMicrosoft.Netcore.App
/Microsoft.AspNetcore.App
, rather than just the ones that match the TFM of the desired reference version. This is because, during the build of the template test projects, conditions on Item metadata give the following error:This happens for both of the following conditions:
We should investigate why this error occurs only in the template tests, and what we can do to work around it so that we can apply this condition to the update. It's worth noting that the same workaround appears in release/3.1, so we should decide if it's worth fixing there as well.
CC @dougbu @JunTaoLuo @Pilchie
The text was updated successfully, but these errors were encountered: