由于缺少服务结构软件包,因此不会添加依赖项 [英] Wont add dependencies because of missing service fabric packages
问题描述
启动一个新的空.NET Core 2类库,我尝试使用nuget添加任何依赖项,但出现此错误
Starting a new empty .NET Core 2 class library i try to add any dependency with nuget i get this error
错误本地源'C:\ Program Files \ Microsoft SDKs \ Service Fabric \ packages'不存在.
Error The local source 'C:\Program Files\Microsoft SDKs\Service Fabric\packages' doesn't exist.
但是服务结构应该与此解决方案无关.该解决方案也可以成功构建
But service fabric should have nothing to do with this solution . Also the solution builds succesfully
推荐答案
我遇到了同样的错误.
已经安装了服务结构,但是我决定删除它.然后,此错误开始出现.
There was service fabric installed but I decided to delete it. Then after that, this error started to appear.
您要做的就是创建一个空的程序包文件夹
All you have to do is create an empty packages folder
C:\Program Files\Microsoft SDKs\Service Fabric\packages
这篇关于由于缺少服务结构软件包,因此不会添加依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!