In this episode, I tackle NuGet hell in Visual Studio! If you’re struggling with NuGet package errors preventing your project from building, this episode is for you. I’ll demonstrate how to use a PowerShell script to quickly resolve these issues—plus, it can help fix DLL conflicts too!
Don’t let dependency issues slow you down—watch now and get back to coding!
Powershell Script
Run this script from the folder you want cleaned.
Get-ChildItem .\ -include bin,obj,packages -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse -Verbose }
dotnet nuget locals all -c
Resources
Videos on demand from dotNetDave: http://bit.ly/dotNetDaveOnDemand
Discover more from dotNetTips.com
Subscribe to get the latest posts sent to your email.
