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
Btw I've been telling ppl to set AdditionalProperties="TargetFramework=..." (Slack / StackOverflow) - how bad is/was that?
That way the targets that the negotiation calls into always returned the proper values since they considered the project to be single-TFM anyway.
It's slightly less specific than SetTargetFramework, and harder to detect for a case like this, but otherwise works the same, I think. The side effect of forcing the reference into its inner build and sidestepping the outer-build negotiation is interesting. It might even be better that way, though right now I think I prefer the explicit approach.
Today, if you want to explicitly pick the
TargetFramework
of aProjectReference
, you must specify two metadata values:But
SkipGetTargetFrameworkProperties
is redundant: ifSetTargetFramework
is set, we can assume that we shouldn't do the negotiation.See dotnet/project-system#477 (comment) (cc @nguerrera)
The text was updated successfully, but these errors were encountered: