[英]Package Restore Failed Microsoft.WindowsAzure.Storage
I switched my 4.8 project to SDK format and am trying to restore the Nuget packages I need.我将我的 4.8 项目切换为 SDK 格式,并试图恢复我需要的 Nuget 包。 I can see that it is available in Nuget
我可以看到它在 Nuget 中可用
However when I try to install it I get NU1101 Unable to find package Microsoft.WindowsAzure.Storage但是,当我尝试安装它时,我得到 NU1101 无法找到 package Microsoft.WindowsAzure.Storage
If I have the following in my project如果我的项目中有以下内容
<PackageReference Include="Microsoft.WindowsAzure.Storage" Version="9.3.3.0" />
Then when I build I get an error.然后当我构建时出现错误。
No packages exist with this id in source(s) nuget.org
源 nuget.org 中不存在具有此 ID 的包
[Update] [更新]
Now I see that the package version is deprecated现在我看到 package 版本已弃用
However if I try installing Azure.Storage.Blobs 12.11.0 I get但是,如果我尝试安装 Azure.Storage.Blobs 12.11.0,我会得到
Error NU1605 Detected package downgrade: Azure.Core from 1.22.0 to 1.6.0.
错误 NU1605 检测到 package 降级:Azure.Core 从 1.22.0 到 1.6.0。 Reference the package directly from the project to select a different version.
直接从项目引用 package 到 select 一个不同的版本。
The following works.以下作品。
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3.0" />
When I right clicked the error in my source code VS2022 gave me the option of downloading from Nuget.当我右键单击源代码中的错误时,VS2022 为我提供了从 Nuget 下载的选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.