Assets file project.assets.json not found. Run a NuGet package restore

后端 未结 30 902
孤城傲影
孤城傲影 2020-11-28 20:02

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

相关标签:
30条回答
  • 2020-11-28 20:51

    In my case I had a problem with the Available Package Sources. I had move the local nuget repository folder to a new path but I did not update it in the Nuget Available Package Sources. When I've correct the path issue, update it in the Available Package Sources and after that everything (nuget restor, etc) was working fine.

    0 讨论(0)
  • 2020-11-28 20:53

    Closing and re-opening Visual Studio solved this issue for me, once I had made sure the NuGet packages had been restored as per other answers posted here.

    Edit: Sometimes just trying to build again fixes the problem.

    0 讨论(0)
  • 2020-11-28 20:53

    For me when i did - dotnet restore still error was occurring.

    I went to

    1 Tool -> NuGet Package Maneger -> Package Manager settings -> click on "Clear on Nuget Catche(s)"

    2 dotnet restore

    resolved issues.

    0 讨论(0)
  • 2020-11-28 20:55

    Very weird experience I have encountered!

    I had cloned with GIT bash and GIT cmd-Line earlier, I encountered the above issues.

    Later, I cloned with Tortoise-GIT and everything worked as expected.

    May be this is a crazy answer, but trying with this once may save your time!

    0 讨论(0)
  • 2020-11-28 20:55

    I got the error when I created a lambda in dot net core in VS2017. What worked for me was to unload the project and load it back.

    0 讨论(0)
  • 2020-11-28 20:55

    You can go for : Tools > NuGet Package Manager > Package Manager Console

    And then Run:

    dotnet restore

    0 讨论(0)
提交回复
热议问题