无法打开 NuGet 包管理器控制台

问题描述 投票:0回答:6

当我尝试打开 NuGet 包管理器控制台 时,出现以下错误。我不确定是什么阻止了程序包管理器控制台打开。

Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.

Package Manager Console Host Version 4.5.0.4685

Type 'get-help NuGet' to see all available NuGet commands.

Unable to find fallback package folder 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback\'.

这是我从

dotnet --info
检索到的附加信息:

.NET Command Line Tools (2.1.2)

Product Information:
 Version:            2.1.2
 Commit SHA-1 hash:  5695315371

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.2\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.3
  Build    : a9190d4a75f4a982ae4b4fa8d1a24526566c69df

在尝试寻找解决方案后,我在此发布。

c# visual-studio
6个回答
19
投票

以“管理员”身份启动 PowerShell 并运行以下命令: mkdir "C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback"

然后重新启动 Visual Studio,一切都应该可以正常工作。 


13
投票

希望这也适合你。


0
投票


0
投票


0
投票


0
投票

© www.soinside.com 2019 - 2024. All rights reserved.