Somewhere in the mists of time I found an example of a Nuget uninstall.ps1 script to remove a DLL reference that I've been blindly copying ever since. This is it:
param($installPath, $toolsPath, $package, $project) $project.Object.References.Remove("Dll.Name");
But now when invoking a package uninstall I'm getting an error saying that Remove is not a method. What script should I be using to remove a DLL reference?