我要更新Microsoft.NETCore.UniversalWindowsPlatform但它显示一个错误
Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'
如果我打开“输出”选项卡,它会显示以下内容
Restoring packages for D:\Project\Windows 10 Developement\Template\HamburgerMenu\HamburgerMenu\project.json...
GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/index.json
OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/index.json 938ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/5.3.3/microsoft.netcore.universalwindowsplatform.5.3.3.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.universalwindowsplatform/5.3.3/microsoft.netcore.universalwindowsplatform.5.3.3.nupkg 936ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/index.json
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/index.json 946ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/1.6.2/microsoft.net.native.compiler.1.6.2.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.compiler/1.6.2/microsoft.net.native.compiler.1.6.2.nupkg 938ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/index.json
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/index.json
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/index.json
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/index.json 481ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/1.6.1/microsoft.net.native.sharedlibrary-arm.1.6.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/index.json 967ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/index.json 1438ms
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/1.6.1/microsoft.net.native.sharedlibrary-x86.1.6.1.nupkg
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/1.6.1/microsoft.net.native.sharedlibrary-arm.1.6.1.nupkg 1347ms
OK https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/1.6.1/microsoft.net.native.sharedlibrary-x86.1.6.1.nupkg 1161ms
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x64.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg' has timed out after 100000ms.
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x64.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg' has timed out after 100000ms.
GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x64.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x64/1.6.1/microsoft.net.native.sharedlibrary-x64.1.6.1.nupkg' has timed out after 100000ms.
Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'.
Time Elapsed: 00:27:03.1499426
========== Finished ==========
尝试过的解决方案
- 以管理员身份运行
- Nuget错误安装包Microsoft.NETCore.UniversalWindowsPlatform
- Using
Package Manager Console
更新
Update
我已手动安装 Microsoft.Net.Native.SharedLibrary-x64。现在它也不起作用了。
Failed to download package 'Microsoft.Net.Native.SharedLibrary-x86.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-x86/1.6.1/microsoft.net.native.sharedlibrary-x86.1.6.1.nupkg'.
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
Failed to download package 'Microsoft.Net.Native.SharedLibrary-arm.1.6.1' from 'https://api.nuget.org/v3-flatcontainer/microsoft.net.native.sharedlibrary-arm/1.6.1/microsoft.net.native.sharedlibrary-arm.1.6.1.nupkg'.
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
无法加载包“Microsoft.Net.Native.SharedLibrary-x64”
根据错误日志很难确定这个问题是否与互联网连接、项目本身或其他有关,但我可以为您提供解决此问题的方法:
解决方法:
- 从以下位置下载包“Microsoft.Net.Native.SharedLibrary-x64”nuget.org.
之后,您会注意到该包将被添加到该文件夹中:
- Update Microsoft.NETCore.UniversalWindowsPlatform
package.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)