Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 安装Microsoft.Azure.CosmosDB.Table NuGet时出错_C#_Visual Studio_Azure_Nuget_Nuget Package - Fatal编程技术网

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

C# 安装Microsoft.Azure.CosmosDB.Table NuGet时出错,c#,visual-studio,azure,nuget,nuget-package,C#,Visual Studio,Azure,Nuget,Nuget Package,正在尝试安装Microsoft.Azure.CosmosDB.Table1.1.3版,但不断收到错误 无法解析依赖项“Microsoft.Azure.Storage.Common”。 使用的源:“nuget.org”、“Microsoft Visual Studio脱机” 包裹' 我当前的项目来自Azure QnA bot模板 这方面的任何帮助都将是非常感激的 安装Microsoft.Azure.CosmosDB.Table NuGet时出错 这是一个问题,如果项目配置为使用packages.c

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

无法解析依赖项“Microsoft.Azure.Storage.Common”。 使用的源:“nuget.org”、“Microsoft Visual Studio脱机” 包裹'

我当前的项目来自Azure QnA bot模板

这方面的任何帮助都将是非常感激的

安装Microsoft.Azure.CosmosDB.Table NuGet时出错

这是一个问题,如果项目配置为使用
packages.config
此问题将自行出现

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

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

如果仍然出现相同的错误,请检查以下内容:

  • 使用包管理控制台安装Microsoft.Azure.CosmosDB.Table包及其依赖项。要做的事
    为此,请在软件包管理器控制台中为您的
    解决方案

    安装软件包Microsoft.Azure.CosmosDB.Table-IncludePrecrease

  • 在安装之前,请使用首选的Nuget软件包管理工具安装Microsoft.Azure.Storage.Common Nuget软件包
    Microsoft.Azure.CosmosDB.Table

希望这有帮助