Hi Team
I need some help, i have WPF project build on version 2015 of VS IDE, but i want to update all the packages, they are all yellow in color. What steps must i used to resolve this problem by using command in nuget?
PM> Update-Package -Reinstall
Attempting to gather dependencies information for multiple packages with respect to project 'Feedmill Weighbridge', targeting '.NETFramework,Version=v4.7.2'
Attempting to resolve dependencies for multiple packages
Update-Package : Unable to find package 'System.Diagnostics.DiagnosticSource'. Existing packages must be restored before performing an install or update.
At line:1 char:1
+ Update-Package -Reinstall
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Update-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand
PM>
Naimish MakwanaPosted Apr 25, 2024, 6:07 AM
It seems like you’re having trouble updating your packages in Visual Studio due to a missing package: ‘System.Diagnostics.DiagnosticSource’. Here are the steps you can follow to resolve this issue:
Update-Package -Reinstallcommand that you’ve been using.If the problem persists, it might be due to a problem with the NuGet package source. You can check and update your package sources by following these steps:
https://api.nuget.org/v3/index.json.Remember to restart Visual Studio after modifying the package sources. I hope this helps! Let me know if you have any other questions. ??