Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

Summary of the changes

This is part of the source-build work to enable trimming of net4* targets. Parent repos (installer and sdk) have been updated, so the next step is to update dependencies, like runtime.

Here's how this is consumed: dotnet/arcade#12785

Top-level tracking issue: dotnet/source-build#3014

This essentially just avoids building net4* TFMs when building Linux source build.

Fixes: #74950

@ghost
Copy link

ghost commented Mar 24, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

### Summary of the changes

This is part of the source-build work to enable trimming of net4* targets. Parent repos (installer and sdk) have been updated, so the next step is to update dependencies, like runtime.

Here's how this is consumed: dotnet/arcade#12785

Top-level tracking issue: dotnet/source-build#3014

This essentially just avoids building net4* TFMs when building Linux source build.

Fixes: #74950

Author: NikolaMilosavljevic
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@mmitche
Copy link
Member

mmitche commented Mar 24, 2023

VERY cool.

<InnerBuildArgs>$(InnerBuildArgs) /p:AdditionalRuntimeIdentifierParent=$(BaseOS)</InnerBuildArgs>
<InnerBuildArgs Condition="'$(SourceBuildUseMonoRuntime)' == 'true'">$(InnerBuildArgs) /p:PrimaryRuntimeFlavor=Mono /p:RuntimeFlavor=Mono</InnerBuildArgs>
<!-- Unset NetFrameworkMinimum property, to disable netfx projects. -->
<InnerBuildArgs>$(InnerBuildArgs) /p:NetFrameworkMinimum=</InnerBuildArgs>
Copy link
Member

Choose a reason for hiding this comment

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

This should be done in Directory.Build.props instead in order for it work with the -sb switch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks - will fix this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed with commit: 76779f9

@ghost ghost added the needs-author-action An issue or pull request that requires more info or actions from the author. label Mar 24, 2023
@ghost ghost removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Mar 26, 2023
Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@ViktorHofer ViktorHofer merged commit eb044f1 into dotnet:main Mar 27, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TFM trimming, and elimination of net4* targeting in Linux source-build

4 participants