Hi @Percy Chavez ,
Welcome to Microsoft Q&A!
How did you add a package from a file?
Please close all running Visual Studio Instances and update your VS2022 to the latest version.
Then, run your VS2022 as administrator and add a package source as the following steps:
Go to Tools > Options > NuGet Package Manager > Package Sources > select “+” > edit the Name to nuget.org > enter https://api.nuget.org/v3/index.json in Source > Update.
After restarting your Visual Studio, please create a new project to check it again.
If it persists, please transfer your error message into English and share me the detailed information to investigate it further.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.