xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.64k stars 1.88k forks source link

TFM Monoandroid13 + nuget version bumps #15745

Closed moljac closed 1 year ago

moljac commented 1 year ago

Description of Change

Bumped nuget packages to latest versions (after updates in AX and GPS-FB-MLKit)

code \
    ./Xamarin.Forms.ControlGallery.Android/Nuget.Build.targets \
    ./Xamarin.Forms.ControlGallery.Android/Directory.Build.targets \
    ./Stubs/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android\ \(Forwarders\).csproj \
    ./DualScreen/DualScreen.Android/DualScreen.Android.csproj \
    ./Xamarin.Forms.Maps.Android/Xamarin.Forms.Maps.Android.csproj \
    ./Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj \
    ./Xamarin.Forms.DualScreen/Xamarin.Forms.DualScreen.csproj \
    ./Xamarin.Forms.Platform.Android.AppLinks/Xamarin.Forms.Platform.Android.AppLinks.csproj \
    ./Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj \
    ./EmbeddingTestBeds/Embedding.Droid/Directory.Build.targets \

Need to check whether *.nuspecs in .\.nuspec\ folder need to be manually edited:

./.nuspec/Xamarin.Forms.nuspec \
./.nuspec/Xamarin.Forms.Visual.Material.nuspec \
./.nuspec/Xamarin.Forms.AppLinks.nuspec: \

potential problems (after investigation) due to very old dependencies that might transitively pull in problematic (outdated packages:)

    <PackageReference Include="Xam.Plugin.DeviceInfo">
      <Version>3.0.2</Version>
    </PackageReference>

Issues Resolved

Possible nuget transitive dependency issues.

API Changes

None

Platforms Affected

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

PR Checklist

moljac commented 1 year ago

Windows Phase debug build fails for nuget restore.

Smells like nuget feed


C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error :   Unable to connect to the remote server [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error :   A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 13.107.6.175:443 [D:\a\1\s\Xamarin.Forms.sln]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error : Failed to download package 'Xamarin.AndroidX.Annotation.Experimental.1.3.0.3' from 'https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2/xamarin.androidx.annotation.experimental/1.3.0.3/xamarin.androidx.annotation.experimental.1.3.0.3.nupkg'. [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error : An error occurred while sending the request. [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error :   Unable to connect to the remote server [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error :   A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 13.107.6.175:443 [D:\a\1\s\Xamarin.Forms.sln]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error : Failed to download package 'Xamarin.AndroidX.Core.1.9.0.3' from 'https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2/xamarin.androidx.core/1.9.0.3/xamarin.androidx.core.1.9.0.3.nupkg'. [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error : An error occurred while sending the request. [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error :   Unable to connect to the remote server [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error :   A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 13.107.6.175:443 [D:\a\1\s\Xamarin.Forms.sln]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error : The feed 'dotnet-public [https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json]' lists package 'Xamarin.AndroidX.Lifecycle.LiveData.2.6.1.1' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. [D:\a\1\s\Xamarin.Forms.sln]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): error :   Unable to find package 'Xamarin.AndroidX.Lifecycle.LiveData.2.6.1.1'. [D:\a\1\s\Xamarin.Forms.sln]

    20 Warning(s)
    10 Error(s)