You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 4, 2021. It is now read-only.
[Core] Fix project options showing all frameworks for sdk project
If a SDK style project targeted net472 then Project Options - Build -
General would list all target frameworks, not just the .NET Framework.
The problem was that the SdkProjectExtension overrode the
OnGetSupportsFramework and returns true so it can support any target
framework. This prevents the RuntimeOptionsPanel from listing only
the related target frameworks for the project.
To fix this the SdkProjectExtension no longer indicates it supports
all target frameworks and instead the DotNetProject checks if the
project has a SdkProjectExtension enabled when setting the
TargetFramework property. If there an associated SdkProjectExtension
then an exception is not thrown when the target framework is not known.
Fixes VSTS #992631 - net472 sdk style project allows any target
framework to be selected in project options
0 commit comments