未找到资产文件 project.assets.json.运行 NuGet 包还原 [英] Assets file project.assets.json not found. Run a NuGet package restore
问题描述
我正在尝试使用 nopCommerce(用 .NET Core 编写)但是当我想运行该项目时,我遇到了 52 个错误,告诉我运行 nuget 包还原
I'm trying to use nopCommerce(Which is written in .NET Core) but when I want to run the project I face 52 Errors telling me Run a nuget package restore
资产文件 ~objproject.assets.json' 未找到.运行 NuGet 包还原以生成此文件.Nop.Web.MVC.Testsote
Assets file ~objproject.assets.json' not found. Run a NuGet package restore to generate this file. Nop.Web.MVC.Testsote
当我右键单击解决方案并选择恢复 Nuget 包"时,我收到以下消息:
when I use the right click on the solution and selecting Restore Nuget Packages I get this message:
所有软件包都已安装,无需恢复.
All packages are already installed and there is nothing to restore.
但是那 52 个错误仍然存在,并且在 Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution 解决方案上没有安装任何东西,我最近也是将我的 VS2017 更新到 15.5.4
but those 52 Errors are still there and in Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution there is nothing installed on the solution,also I Recently updated my VS2017 to 15.5.4
推荐答案
如果 'dotnet restore' 不起作用,以下步骤可能会有所帮助:
In case when 'dotnet restore' not works, following steps may help:
- Visual Studio >> 工具 >> 选项 >> Nuget 管理器 >> 包源
- 取消选中任何第三方软件包来源.
- 重建解决方案.
这篇关于未找到资产文件 project.assets.json.运行 NuGet 包还原的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!