Skip to content
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

Applies all patches from dotnet/source-build for 5.0 #3511

Merged
merged 27 commits into from
Jul 15, 2020

Conversation

dominoFire
Copy link
Contributor

@dominoFire dominoFire commented Jul 10, 2020

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/384
Regression: No

  • Last working version:
  • How are we preventing it in future: working more closely with source-build team

Fix

Details: Applies all patches located at: https://github.com/dotnet/source-build/tree/master/patches/nuget-client

NOTE: This PR blocks dotnet/source-build#1649

Details on patches

  • 0001-Set-final-5.4-branding-3100.patch
    Adds IsEscrow = true property when in source-build mode. No effect.

  • 0002-experimental-nuget-patch.patch
    Remove IL merged assemblies that conflicts with source-build. Seems related to ILMerge does not run in source-build dotnet/source-build#739

  • 0003-MSBuild-package-versions-for-dotnet-Source-Build-285.patch
    Adds RepoApi (source-build package injection) to NuGet.Client repo. It is already integrated in this repo

  • 0004-Pin-newtonsoft-json-to-a-specific-version.patch
    Sets Newtonsoft.Json to 9.0.1; already done in NuGet.Client via defaults and RepoApi

  • 0005-New-version-of-ref-assemblies.patch
    Updates netfx reference assemblies to 1.0.0-preview.1; removed ref. assembly since 5.0 is only building netcore assemblies.

  • 0006-Do-not-build-NET-Fx-binaries-in-source-build.patch
    Avoid adding any mention to netframework TFMs to avoid conflicts with source-build

  • 0007-Do-not-set-RID-in-source-build.patch
    When compiling NuGet.Build.Tasks.Pack in source-build, avoid setting the RuntimeIdentifier to win7-x64. This RID is needed to copy runtime-specifc assets from System.Security.Cryptography.ProtectedData 4.3.0 to the final netcore NuGet.Build.Task.Pack package.

  • 0008-Remove-unneeded-feeds.patch
    Remove feeds that conflicts with source-build at those could introduce unneeded prebuilt packages. Those feeds are VS-specific and added conditionally with the help of RestoreAdditionalProjectSources

  • 0009-Clear-VsToolsPath-for-source-build.patch
    It seems that VSToolsPath confuses source-build, so it is set to blank

  • 0010-Remove-trailing-separator-for-PackagePath.patch
    Removes trailing backslashes in project file. Known issue documented here: Invalid Nuget.Build.Tasks.Console package when building from source Home#9705

Testing

Tests Added: No
Reason for not adding tests: Build infrastructure, it only needs to have a full green build to validate changes
Validation: source-build CI run:
All but MacOS are green builds. CI Mac pipeline failure seems to be related with dotnet/installer repo

build/common.project.props Outdated Show resolved Hide resolved
build/common.project.props Outdated Show resolved Hide resolved
build/common.props Outdated Show resolved Hide resolved
build/config.props Outdated Show resolved Hide resolved
@dominoFire dominoFire changed the title Applies all patches from dotnet/source-build for their main branch Applies all patches from dotnet/source-build for 5.0 Jul 13, 2020
@dominoFire dominoFire force-pushed the dev-dominofire-sourcebuild5 branch from c6ac986 to 8ab12f9 Compare July 14, 2020 04:31
@dominoFire dominoFire requested review from nkolev92 and zivkan July 14, 2020 16:10
@dominoFire dominoFire merged commit 90ad7af into dev Jul 15, 2020
@dominoFire dominoFire deleted the dev-dominofire-sourcebuild5 branch July 15, 2020 01:10
@dominoFire dominoFire restored the dev-dominofire-sourcebuild5 branch July 15, 2020 01:10
@dominoFire dominoFire deleted the dev-dominofire-sourcebuild5 branch July 15, 2020 15:57
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.

3 participants