-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Trim away netframework targets in source-build #83899
Conversation
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries Issue Details### Summary of the changes This is part of the source-build work to enable trimming of net4* targets. Parent repos ( 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
|
VERY cool. |
eng/SourceBuild.props
Outdated
@@ -43,6 +43,8 @@ | |||
<InnerBuildArgs Condition="'$(ContinuousIntegrationBuild)' != ''">$(InnerBuildArgs) /p:ContinuousIntegrationBuild=$(ContinuousIntegrationBuild)</InnerBuildArgs> | |||
<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> |
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 should be done in Directory.Build.props instead in order for it work with the -sb switch.
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 - will fix this.
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.
Fixed with commit: 76779f9
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, LGTM
Summary of the changes
This is part of the source-build work to enable trimming of net4* targets. Parent repos (
installer
andsdk
) have been updated, so the next step is to update dependencies, likeruntime
.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