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

Add current source-build prebuilts to support offline builds #14261

Merged
merged 4 commits into from
Aug 5, 2022

Conversation

MichaelSimons
Copy link
Member

@MichaelSimons MichaelSimons commented Aug 4, 2022

Building offline surfaced two issues.

  1. Specify the NuGetConfigFiles in the Application-Insights repo project source-build-externals#33 - this hasn't flown yet so I explicitly updated to pick it up.
  2. The UpdateNuGetConfigPackageSourcesMappings task didn't support offline correctly for two reasons. First, a clear element was getting added after each source-build packageSourceMapping if a clear didn't previously exist. Second, the source-build packageSourceMappings contained no packages in offline. This was caused by the use of LINQ and deferred evaluation. The online packageSourceMappings were removed prior to enumerating the LINQ statement.

@MichaelSimons MichaelSimons force-pushed the sb-prebuilts branch 2 times, most recently from 85e817e to 259d712 Compare August 5, 2022 03:09
@MichaelSimons MichaelSimons marked this pull request as ready for review August 5, 2022 12:05
@MichaelSimons MichaelSimons requested a review from a team as a code owner August 5, 2022 12:05
@lbussell
Copy link

lbussell commented Aug 5, 2022

Linking dotnet/source-build#2961

@MichaelSimons MichaelSimons merged commit 785bddf into dotnet:main Aug 5, 2022
@MichaelSimons MichaelSimons deleted the sb-prebuilts branch August 5, 2022 21:43
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.

2 participants