Skip to content

Trim away netframework targets in source-build - #83899

Merged
ViktorHofer merged 2 commits into
dotnet:mainfrom
NikolaMilosavljevic:tfm.trim
Mar 27, 2023
Merged

ViktorHofer merged 2 commits into
dotnet:mainfrom
NikolaMilosavljevic:tfm.trim

Conversation

@NikolaMilosavljevic

Copy link
Copy Markdown
Contributor

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

ghost commented Mar 24, 2023

Copy link
Copy Markdown

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

mmitche commented Mar 24, 2023

Copy link
Copy Markdown
Member

VERY cool.

Comment thread eng/SourceBuild.props Outdated
<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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

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