How to fix the error

Laurette Yiantet 20 Reputation points
2024-11-03T16:34:49.49+00:00

Severity Code Description Project File Line Suppression State

Error (active) NETSDK1004 Assets file 'C:\Users\User\source\repos\WinFormsApp1\WinFormsApp1\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. WinFormsApp1 C:\Program Files\dotnet\sdk\8.0.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 266

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,901 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 66,226 Reputation points
    2024-11-03T17:03:40.69+00:00

    Delete the bin and obj folder. Then do a rebuild.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.