Friday, March 13, 2020

Manually Remove the Dependency DLL

https://stackoverflow.com/questions/34147484/unable-to-restore-remove-update-a-nuget-package-because-the-mentioned-versio
https://www.nuget.org/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform

Install-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -Version 2.0.1

You can manually remove the dependency by:
  1. Close Visual Studio (not a hard requirement, but helpful)
  2. In text editor, remove dependency from packages.config
  3. Remove package from packages/ directory
  4. In text editor, remove all references to package from .csproj file
  5. Start Visual Studio
  6. Reinstall package through NuGet