How to use the Npgsql reference for framework versions smaller than 4.5?

1

Well, I made an application through Visual Studio 2015, in Windows 7. However, the application will be used in the future, also in Windows XP. The problem is that there is a "Npgsql.EntityFramework" reference, which needs a version of NETFramework greater than or equal to 4.5, which is not supported by Windows XP, would anyone have a hint how to solve such a problem?

    
asked by anonymous 08.07.2016 / 21:46

1 answer

0

.NET 4.0 support was dropped last year (from the date of this response, in the case in 2015), in version 3.0 . Therefore, the latest version that can be used is 2.2.7 .

If you use NuGet, be sure to lock the package version in packages.config :

<?xml version="1.0" encoding="utf-8"?>
<packages>
    <package id="Npgsql" version="2.2.7" allowedVersions="[2.2.7]" />
</packages>
    
08.07.2016 / 21:53