I am trying to automate the upgrade of Nuget packages , as in whenever a new Nuget is generated and uploaded to MSNuget and if our Project needs to upgrade to the latest one . These are the steps I am following :
1) Uninstall the Nuget package
2)ReInstall the Nuget package using the InstallPackage function of the PackageManager Class.
Please let me know how can I programmatically uninstall a Nuget package