gpt4 book ai didi

c# - 安装 Microsoft.Azure.CosmosDB.Table NuGet 时出错

转载 作者:行者123 更新时间:2023-12-03 01:04:54 24 4
gpt4 key购买 nike

尝试安装 Microsoft.Azure.CosmosDB.Table 版本 1.1.3,但不断收到错误

Unable to resolve dependency 'Microsoft.Azure.Storage.Common'. Source(s) used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'

我当前的项目来自 Azure QnA 机器人模板

任何有关此问题的帮助将不胜感激!

最佳答案

Error installing Microsoft.Azure.CosmosDB.Table NuGet

这是一个known issue on GitHub ,如果项目配置为使用 packages.config,此问题将会自行显现。

此问题已针对 PackageReference 得到修复。 NuGet 团队正在确定是否需要修复 packages.config 的此问题,或者保持原样。

在添加nuget包之前,请转到工具-选项->NuGet Package Manager->常规,将默认包管理格式更改为PackageReference。然后重新启动 Visual Studio,重新加载项目,添加该包。

如果您仍然遇到相同的错误,请检查以下Troubleshooting :

  • Use Package Manage Console to install the Microsoft.Azure.CosmosDB.Table package and its dependencies. To do
    this, type the following in the Package Manager Console for your
    solution.

    Install-Package Microsoft.Azure.CosmosDB.Table -IncludePrerelease

  • Using your preferred Nuget package management tool, install the Microsoft.Azure.Storage.Common Nuget package before installing
    Microsoft.Azure.CosmosDB.Table.

希望这有帮助。

关于c# - 安装 Microsoft.Azure.CosmosDB.Table NuGet 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51723110/

24 4 0