简体   繁体   English

尽管已安装软件包,但无法找到 NuGet 软件包 NU1101

[英]Unable to find NuGet packages despite packages being installed NU1101

I created my first C# application recently, and since buying a new computer I cannot get the application to start.我最近创建了我的第一个 C# 应用程序,并且由于购买了一台新计算机,我无法启动该应用程序。 I am receiving 7 of the following errors Error NU1101 Unable to find package Microsoft.VisualStudio.Web.CodeGeneration.Design. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages clesson C:\Users\porkh\Desktop\WERK\Personal\c-lesson\clesson\clesson\clesson.csproj我收到以下 7 个错误Error NU1101 Unable to find package Microsoft.VisualStudio.Web.CodeGeneration.Design. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages clesson C:\Users\porkh\Desktop\WERK\Personal\c-lesson\clesson\clesson\clesson.csproj Error NU1101 Unable to find package Microsoft.VisualStudio.Web.CodeGeneration.Design. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages clesson C:\Users\porkh\Desktop\WERK\Personal\c-lesson\clesson\clesson\clesson.csproj Each with different packages missing. Error NU1101 Unable to find package Microsoft.VisualStudio.Web.CodeGeneration.Design. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages clesson C:\Users\porkh\Desktop\WERK\Personal\c-lesson\clesson\clesson\clesson.csproj每个都缺少不同的包。
Since this was a missing dependencies message I reinstalled visual studio 2019 with C# .net support again, yet I am running into the same error.由于这是缺少依赖项消息,我重新安装了带有 C# .net 支持的 Visual Studio 2019,但我遇到了同样的错误。
On StackOverFlow I read that I need to check my NuGet packages,在 StackOverFlow 上,我读到我需要检查我的 NuGet 包, 努吉特

Here it shows every package that is "missing" in the error messages as installed.在这里,它显示了安装时错误消息中“缺失”的每个 package。
I have also tried running dotnet run and dotnet restore but I get the same error messages.我也尝试过运行dotnet rundotnet restore但我收到相同的错误消息。 I am extremely new to C# so sorry if I have missed the solution in other's answers.我对 C# 非常陌生,如果我错过了其他答案中的解决方案,我很抱歉。 Any help you can give me I'd appreciate it.您可以给我的任何帮助我将不胜感激。
A link to all of my project files here我的所有项目文件的链接在这里

In the image it says在图片中它说

Not available in this source此来源中不可用

and the package source is set to Offline Packages.并且 package 源设置为离线包。 My best guess is, switching to an official NuGet Feed in the drop down to the upper right, will solve your problem.我最好的猜测是,在右上角的下拉菜单中切换到官方 NuGet Feed 将解决您的问题。 You also want to check, if the Nuget source is available (it should).您还想检查 Nuget 源是否可用(应该)。 If not, click the Cog icon, and add it there with the name "Nuget" and the Url https://api.nuget.org/v3/index.json If not, click the Cog icon, and add it there with the name "Nuget" and the Url https://api.nuget.org/v3/index.json

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 NU1101:无法找到包 ''。 源中不存在具有此 ID 的包:Microsoft Visual Studio 离线包,nuget.org - error NU1101: Unable to find package ''. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org 使用 dotnet 发布 .NET 5 和 win-x64 时出现错误“NU1101:无法找到 package xyz” - Error “NU1101: Unable to find package xyz” with dotnet publish .NET 5 and win-x64 可视代码 - 错误 NU1101:无法找到 package Microsoft.EntityFrameworkCore - Visual Code - error NU1101: Unable to find package Microsoft.EntityFrameworkCore 尝试添加额外的 OAuth 提供程序。 获取“错误 NU1101:无法找到 package 'Provider'” - Trying to add additional OAuth Provider. Getting "error NU1101: Unable to find package 'Provider'" 无法使用 nuget 封装 - Unable to use nuget packages NuGet软件包声称未正确安装 - NuGet Packages claiming to not be correctly installed NU1107-更新nuget包时的Xamarin Android错误 - NU1107 - Xamarin Android erro when updating nuget packages 发现/查找Project实际用于已安装的Nuget包的“packages”目录的物理位置 - Discover/Find the physical location of the “packages” directory a Project is actually using for installed Nuget Packages 尽管拥有正确的NuGet软件包,为什么我仍需要在计算机上安装MySQL连接器? - Why do I still need the MySQL Connector installed on the computer despite having the proper NuGet packages? 解决方案中的某些项目无法找到对 NuGet 包的系统引用 - Some Project in a solution is unable to find System references to NuGet Packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM