问题
Please help how to solve this?
'Npgsql' already has a dependency defined for 'System.Threading.Tasks.Extensions':

I've already installed package System.Threading.Tasks.Extensions -Version 4.4.0 Install-Package System.Threading.Tasks.Extensions -Version 4.4.0
even after that I am unable to overcome this issue.
回答1:
You can refresh the nupkg dll by downloading and copying it manually.
- Go to: https://www.nuget.org/packages/Npgsql/
- Click: Manual download option.
- Open the nupkg downloaded file with a file extraction program like WinZip or WinRar.
- Search for the dll in the path lib\net45\Npgsql.dll and copy.
来源:https://stackoverflow.com/questions/48923861/npgsql-already-has-a-dependency-defined-for-system-threading-tasks-extensions