256 Seconds with dotNetDave (E9) – Fixing NuGet Hell Issues in Visual Studio

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.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.