-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving more Tfm specific properties to the targetFramework.props file #34349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good step in the right direction. Did you look at every property that was moved to ensure there weren't further derived properties? Assuming so, then a next step could be to try to eliminate all usage of the properties now in targetframework.props
from propertygroups in props files / project bodies (so that we can support defining TargetFramework in the project body).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. Can you please file an issue for the follow-up work which is making sure that TargetFramework
is never read before the project file is loaded?
The only tfm properties are left for manual shims. We need to keep them to add manual keyword in the path to avoid having the conflicts with generated shims
yeah i will do that. |
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> | ||
<AdditionalBuildTargetFrameworks Condition="'$(BuildAllProjects)' == 'true'">netstandard2.0-$(TargetFrameworkSuffix)</AdditionalBuildTargetFrameworks> | ||
<AdditionalBuildTargetFrameworks Condition="'$(BuildAllProjects)' == 'true'">netstandard2.0</AdditionalBuildTargetFrameworks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you removing the TargetFrameworkSuffix here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about RestoreOutputPath
, ProjectAssetsFile
and MSBuildProjectExtensionsPath
above, which all derive from IntermediateOutputPath
which derives from TargetFramework
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As eric mentioned , the next step is to remove the usage of all properties in targetFramework.props from propertyGroups.
eg all these properties will be the candidate for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you removing the TargetFrameworkSuffix here?
This was a bug. TargetFrameworkSuffix is a property for innerBuilds and is not defined for outer builds and should not be used in outer build. AdditionalBuildTargetFrameworks is used only in outerbuilds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope is just cleanup, nothing is getting fixed here.
No description provided.