c# - 错误 NU1100 : Unable to resolve 'Microsoft. AspNetCore.SpaServices.Extensions

标签 c# asp.net .net

我正在尝试使用 Dotnet 构建一个 React 应用程序。我已经安装了 dotnet 但仍然出现此错误。我已经安装了 dotnet 5 和 dotnet core 3.5。我已经提供了有关错误的必要图像。

First Image

Second Image

D:\dotnet project\Try\Try.csproj : error NU1100: Unable to resolve 'Microsoft.AspNetCore.SpaServices.Extensions (>= 5.0.9)' for 'net5.0'.

最佳答案

奇怪的是,对于我的项目,用户的计算机找不到可恢复的包,因为它没有(真正的)nuget 的映射。我们必须添加(或从 powershell 运行):

dotnet nuget add source --name nuget.org https://api.nuget.org/v3/index.json

然后 nuget restore 工作并且错误消失了。

关于c# - 错误 NU1100 : Unable to resolve 'Microsoft. AspNetCore.SpaServices.Extensions,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68968363/

相关文章:

c# - MS Access 排序(比较字符串数据)

c# - dns.gethostbyname()

c# - 在 RichTextBox 中用空格链接到文件的路径?

c# - 从 AspNetCore TestHost 运行时编译 Razor 期间出现 CompilationFailedException

jquery - 客户端屏幕数据对比

当站点具有全局 AuthorizeAttribute 时,ASP.NET 允许匿名访问 OData $metadata

c# - 为什么 System.Net.Sockets.Socket.AcceptAsync 在长时间不活动后完成 ConnectionReset?

c# - CopyToDataTable : Why exactly does it throw an error if one field is NULL, 以及如何修复它?

c# - 如何循环并销毁Unity中游戏对象的所有 child ?

asp.net - 如何在 ASP.Net MVC 5 站点中设置 NameClaimType?