Search code examples
npgsql

'Npgsql' already has a dependency defined for 'System.Threading.Tasks.Extensions'


Please help how to solve this?

'Npgsql' already has a dependency defined for 'System.Threading.Tasks.Extensions':

'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.


Solution

  • 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.