Skip to content

[tests] fix SuccessfulAndroidXApp test #7112

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

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

jonathanpeppers
Copy link
Member

The SuccessfulAndroidXApp test fails to restore with:

(Restore target) ->
/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/NuGet.targets(131,5):
error : Unable to resolve 'Xamarin.AndroidX.AppCompat (>= 1.4.1.1)' for 'MonoAndroid,Version=v12.0'.

I looked at 1.4.2.1 of the same NuGet, but both versions have
monoandroid12.0 inside.

I noticed in the .binlog:

NuGet Config files used:
/Users/runner/.config/NuGet/NuGet.Config

So this test is using the machine-wide NuGet.config instead of the
one in the root of the xamarin-android repo. I made a change to use
this one, let's see if that solves anything.

The `SuccessfulAndroidXApp` test fails to restore with:

    (Restore target) ->
    /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/NuGet.targets(131,5):
    error : Unable to resolve 'Xamarin.AndroidX.AppCompat (>= 1.4.1.1)' for 'MonoAndroid,Version=v12.0'.

I looked at 1.4.2.1 of the same NuGet, but both versions have
`monoandroid12.0` inside.

I noticed in the `.binlog`:

    NuGet Config files used:
    /Users/runner/.config/NuGet/NuGet.Config

So this test is using the machine-wide `NuGet.config` instead of the
one in the root of the `xamarin-android` repo. I made a change to use
this one, let's see if that solves anything.
@jonathanpeppers
Copy link
Member Author

Ok, wow the NuGet.config fixed it:

image

@jonathanpeppers jonathanpeppers marked this pull request as ready for review June 20, 2022 20:17
@jonathanpeppers jonathanpeppers merged commit ad693d4 into dotnet:main Jun 21, 2022
@jonathanpeppers jonathanpeppers deleted the FixCodeBehindTests branch June 21, 2022 13:25
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants