Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

@NikolaMilosavljevic NikolaMilosavljevic commented Apr 24, 2023

Fixes: dotnet/source-build#3362

Enables TFM filtering by default. Repos can opt-out by adding NoTargetFrameworkFiltering property to repo's root Directory.Build.props file and setting the value to true.

CAUTION: this should not be merged before dotnet/installer#16214 gets merged.

This is fed into the inner source build as an environment variable (DotNetTargetFrameworkFilter) to enable filtering.
The default target framework filter includes all recent netcoreapps in SBRP, as well as 8.0 (latest) and 7.0 (working to get rid of it.
TFM filtering is enabled by default and can be disabled, at repo level, by setting NoTargetFrameworkFiltering property to true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious why this needs to be set in the repo's root Directory.Build.props file. It seems preferrable in the SourceBuild.props.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see discussion in dotnet/runtime#84811 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TFM trimming should be enabled by default - with option for opting-out

3 participants