GetTargetFrameworkProperties and GetNearestTargetFramework removed from ProjectReference protocol
The GetTargetFrameworkProperties
target and GetNearestTargetFramework
task have been removed from the .NET SDK.
Version introduced
.NET SDK 6.0.100
Old behavior
The GetTargetFrameworkProperties
target and the GetNearestTargetFramework
task were available but not used. However, custom MSBuild logic could take a dependency on them.
New behavior
The GetTargetFrameworkProperties
target and the GetNearestTargetFramework
task no longer exist.
Reason for change
The GetTargetFrameworkProperties
target and the GetNearestTargetFramework
task were deprecated in MSBuild 15.5, and .NET 6 removes them completely.
Recommended action
Use GetTargetFrameworks
instead. For more information, see Targets required to be referenceable.
Affected APIs
N/A
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for