gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 06:34:43 25 4
gpt4 key购买 nike

当我尝试打开 时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

在尝试搜索解决方案后,我在此处发布。

最佳答案

身份启动 PowerShell管理员 并运行以下命令:

mkdir "C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback"

然后重新启动 Visual Studio,一切正常。

关于c# - 无法打开 NuGet 包管理器控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48333699/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com