[build] Pass NuGet.config when restoring - #7578
Merged
Merged
Conversation
grendello
approved these changes
Nov 23, 2022
Local builds have been occassionally failing for me:
Determining projects to restore...
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-arm. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-arm64. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-x86. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-x64. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
Failed to restore C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj (in 1.79 sec).
EXEC : error : dotnet restore C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj failed. [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
Fix this by explicitly passing NuGet.config files to various restores
performed by xaprepare.
pjcollins
force-pushed
the
restore-with-config
branch
from
November 23, 2022 17:18
61da1dc to
724ffe2
Compare
grendello
added a commit
to grendello/xamarin-android
that referenced
this pull request
Nov 24, 2022
* main: [build] Pass NuGet.config when restoring (dotnet#7578)
grendello
added a commit
to grendello/xamarin-android
that referenced
this pull request
Nov 28, 2022
* main: LEGO: Merge pull request 7584 LEGO: Merge pull request 7582 [build] Pass NuGet.config when restoring (dotnet#7578) Bump to xamarin/monodroid/main@8c54ea6d (dotnet#7576)
jonathanpeppers
pushed a commit
that referenced
this pull request
Sep 15, 2023
Local builds have been occassionally failing for me:
Determining projects to restore...
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-arm. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-arm64. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-x86. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj : error NU1101: Unable to find package Microsoft.NETCore.App.Runtime.Mono.android-x64. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, darc-pub-dotnet-emsdk-c3fc739, darc-pub-dotnet-runtime-1e1f688, xamarin.android util [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
Failed to restore C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj (in 1.79 sec).
EXEC : error : dotnet restore C:\Users\Peter\source\xamarin-android\build-tools\xaprepare\xaprepare\package-download.proj failed. [C:\Users\Peter\source\xamarin-android\Xamarin.Android.sln]
Fix this by explicitly passing NuGet.config files to various restores
performed by xaprepare.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Local builds have been occassionally failing for me:
Fix this by explicitly passing NuGet.config files to various restores
performed by xaprepare.