简体   繁体   English

Package 还原失败 Microsoft.WindowsAzure.Storage

[英]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 中可用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.

相关问题 System.IO.FileLoadException - 无法加载文件或程序集 Microsoft.WindowsAzure.Storage - System.IO.FileLoadException - Could not load file or Assembly Microsoft.WindowsAzure.Storage package 分辨率失败 xcode - package resolution failed xcode 未处理的异常:“package:firebase_storage/src/storage_reference.dart”:断言失败:第 62 行 pos 12:“file.existsSync()”:不是真的 - Unhandled Exception: 'package:firebase_storage/src/storage_reference.dart': Failed assertion: line 62 pos 12: 'file.existsSync()': is not true 图片上传到Firebase storage failed on storage - Image upload to Firebase storage failed on storage 错误:包“gifski”的配置失败 - ERROR: configuration failed for package ‘gifski’ 在 Microsoft azure 存储上设置 Blob 磁盘缓存 - set blob disk cache on microsoft azure storage 将 CSV 从 Azure Automation 导出到 Microsoft Teams 而不是 blob 存储? - Export a CSV from Azure Automation to Microsoft Teams instead of blob storage? 如何使用环境变量为浏览器实现 Microsoft Azure Blob 存储? - How to implement Microsoft Azure Blob storage for browser with environment variables? Telerik Nuget package 在 Azure 中恢复构建管道失败 - Telerik Nuget package restore in Azure build pipeline fails 云存储 - 禁用公共访问保护,但失败 - Cloud Storage - Disabled Public Access Prevention, but Failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM