NuGet restore is failing while building the project · Issue #504 · dotnet/maui (original) (raw)

@angshuman-agarwal

Description

Getting Build error related to NuGet packages not being able to restore

Steps to Reproduce

  1. Download Visual studio Preview (latest)
  2. Follow the instructions on MAUI readme page.
  3. execute : dotnet build src\Controls\samples\Controls.Sample.Droid\Maui.Controls.Sample.Droid-net6.csproj -t:Run

Expected Behavior

Build should be successful

Actual Behavior

NuGet restore is failing

Basic Information

Exception Output:

 Determining projects to restore...
  Retrying 'FindPackagesByIdAsync' for source 'https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2/mdoc/index.json'.
  The SSL connection could not be established, see inner exception.
    Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host..
    An existing connection was forcibly closed by the remote host.


C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\NuGet.targets(131,5): error : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json. [C:\Users\aa\maui\src\Controls\samples\Controls.Sample.Droid\Maui.Controls.Sample.Droid-net6.csproj]
C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\NuGet.targets(131,5): error :   The SSL connection could not be established, see inner exception. [C:\Users\aa\maui\src\Controls\samples\Controls.Sample.Droid\Maui.Controls.Sample.Droid-net6.csproj]
C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\NuGet.targets(131,5): error :   Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.. [C:\Users\aa\maui\src\Controls\samples\Controls.Sample.Droid\Maui.Controls.Sample.Droid-net6.csproj]
C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\NuGet.targets(131,5): error :   An existing connection was forcibly closed by the remote host. [C:\Users\aa\maui\src\Controls\samples\Controls.Sample.Droid\Maui.Controls.Sample.Droid-net6.csproj]