Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Can't publish a core 3.1 self contained app after upgrading from core 2.1, nuget failing somehow? Builds fine

$
0
0

Think the error may be unrelated to the upgrade, it builds fine, publishes as framework dependent fine, but self contained fails.

Here is what the errors stay; clearly something needs to be downloaded, but trying to run package restore in UI fails.

Error Failed to retrieve information about 'Microsoft.AspNetCore.App.Runtime.win-x86' from remote source 'https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNetCore.App.Runtime.win-x86'&semVerLevel=2.0.0'.An error occurred while sending the request.The underlying connection was closed: An unexpected error occurred on a send.Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.An existing connection was forcibly closed by the remote host MY_PROJECT 0

Error The runtime pack for Microsoft.AspNetCore.App.Runtime.win-x86 was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'win-x86'. HarvesterApi 0

This is what I get from output.

Retrying 'FindPackagesByIdAsyncCore' for source 'https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNetCore.App.Runtime.win-x86'&semVerLevel=2.0.0'.An error occurred while sending the request.The underlying connection was closed: An unexpected error occurred on a send.Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.An existing connection was forcibly closed by the remote hostRetrying 'FindPackagesByIdAsyncCore' for source 'https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNetCore.App.Runtime.win-x86'&semVerLevel=2.0.0'.An error occurred while sending the request.The underlying connection was closed: An unexpected error occurred on a send.Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.An existing connection was forcibly closed by the remote hostC:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(131,5): Error : Failed to retrieve information about 'Microsoft.AspNetCore.App.Runtime.win-x86' from remote source 'https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.AspNetCore.App.Runtime.win-x86'&semVerLevel=2.0.0'.An error occurred while sending the request.The underlying connection was closed: An unexpected error occurred on a send.Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.An existing connection was forcibly closed by the remote hostC:\Program Files\dotnet\sdk\5.0.402\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(415,5): Error NETSDK1112: The runtime pack for Microsoft.AspNetCore.App.Runtime.win-x86 was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'win-x86'.

Not sure why nuget would be closing connections like that? Do I need to download something else?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>