Click here to Skip to main content
15,887,289 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to create a Windows C# Desktop application.

Any time I attempt to run /debug it I get a "ResolvePackageAssets" error.

I tried with VB.Net and got the same error. I am running Windows10, VS2019 and 2022, Visual Studio Community edition. I have tried targeting .NET versions 5,6, and 8. Version 8 won't display a forms designer.

I know I am doing something drastically wrong. I would appreciate it if you could give me a clue.

What I have tried:

I have reviewed ALL Microsoft help and learn files and couldn't find a mention of the error. I used NuGet Package Manager to download the .NET versions I did not have and tried them with the same result.

I searched my Murach C# book with no success.
Posted

1 solution

There's a ton of possible problems that can cause this. See this SO post for a list of them: https://stackoverflow.com/questions/55086195/the-resolvepackageassets-task-failed-unexpectedly-system-typeloadexception[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900