Can';t在VS2015中安装包Azure.Storage.Blobs.12.5.1
我正在尝试开始使用Azure Blob存储。我正在运行VS2015,但我安装了.NET 4.8 SDK,并将我的项目设置为针对它。当我尝试安装NuGet软件包时,我得到以下信息:Can';t在VS2015中安装包Azure.Storage.Blobs.12.5.1,azure,visual-studio-2015,nuget,azure-storage-blobs,Azure,Visual Studio 2015,Nuget,Azure Storage Blobs,我正在尝试开始使用Azure Blob存储。我正在运行VS2015,但我安装了.NET 4.8 SDK,并将我的项目设置为针对它。当我尝试安装NuGet软件包时,我得到以下信息: Could not install package 'Azure.Storage.Blobs 12.5.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the
Could not install package 'Azure.Storage.Blobs 12.5.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework.
根据这一点,.NET4.7.2相当于.NET标准2.0,这似乎是软件包想要的。但是我已经尝试了.NET 4.7.2和4.8,但该软件包没有安装。
Azure.Storage.Blobs
仅为.NET标准
我相信您需要为.NET Framework使用Microsoft.Azure.Storage.Blob
(最低要求为4.5.2)
链接到Nuget是
预计到达时间:
我刚读了你问题的另一半。NET Framework 4.6.1与.NET标准2.0兼容
我将在这里冒险说,VisualStudio2015和.NETStandard 2.0包之间存在某种不兼容。我在VisualStudio2019的.NETFramework4.6.1项目上测试了它,它安装的包很好
只要查一下就知道了。您至少需要Visual Studio 2017。至少您仍然可以使用Microsoft.Azure.Storage.Blob
Azure.Storage.Blob
仅为.NET标准
我相信您需要为.NET Framework使用Microsoft.Azure.Storage.Blob
(最低要求为4.5.2)
链接到Nuget是
预计到达时间:
我刚读了你问题的另一半。NET Framework 4.6.1与.NET标准2.0兼容
我将在这里冒险说,VisualStudio2015和.NETStandard 2.0包之间存在某种不兼容。我在VisualStudio2019的.NETFramework4.6.1项目上测试了它,它安装的包很好
只要查一下就知道了。您至少需要Visual Studio 2017。至少你仍然可以使用
Microsoft.Azure.Storage.Blob
,所以Azure真的希望你使用VS2017或更高版本
在从TFS中提取后,为了在VS 2015上实现这一点,我做了以下工作:
.vbproj
文件。在第一个PropertyGroup
下,在结束标记之前添加此行:false
所以Azure真的希望你在VS2017或更高版本
在从TFS中提取后,为了在VS 2015上实现这一点,我做了以下工作:
.vbproj
文件。在第一个PropertyGroup
下,在结束标记之前添加此行:false
它不是Visual Studio(在VS 2017、2019中得到相同的错误),而是项目需要是.Net核心而不是.Net框架。如前所述,您可以安装Microsoft.Azure.Storage.Blob,但您确实会收到一条警告,该软件包已被弃用(并且它说改用Azure.Storage.Blob)它不是Visual Studio(在VS 2017、2019中出现相同的错误),而是该项目需要是.Net Core而不是.Net Framework。如前所述,您可以安装Microsoft.Azure.Storage.Blob,但您确实会收到一条警告,说明该软件包已被弃用(并且它说改用Azure.Storage.Blob),因此我只为Windows开发。我听说过.NET核心,什么是.NET标准?Microsoft是否计划整合这些框架?@John--我刚刚尝试在.NET 4.6.1项目上安装Azure.Storage.Blobs
,效果很好(在Visual Studio 2019中)。我要冒一个险,说这是Visual Studio 2015和.NET标准之间的不兼容。所以我只为Windows开发。我听说过.NET核心,什么是.NET标准?Microsoft是否计划整合这些框架?@John--我刚刚尝试在.NET 4.6.1项目上安装Azure.Storage.Blobs
,效果很好(在Visual Studio 2019中)。我将在这里冒一个险,说这是VisualStudio2015和.NET标准之间的不兼容。