Skip to content

Commit 7547263

Browse files
committed
Manage Npgsql ADO version better
* Depend on Npgsql 4.1.3 * Differentiate Npgsql versions in App.config/Web.config transforms. Fixes #147
1 parent 91e3733 commit 7547263

5 files changed

Lines changed: 28 additions & 2 deletions

File tree

Directory.Build.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<Project>
22
<ItemGroup Condition="'$(TargetFramework)' != 'net45'">
3-
<PackageReference Update="Npgsql" Version="4.1.2" />
4-
<PackageReference Update="Npgsql.LegacyPostgis" Version="4.1.2" />
3+
<!-- Any update of these version must be accompanied by the appropriate
4+
change in EF6.PG/content -->
5+
<PackageReference Update="Npgsql" Version="4.1.3" />
6+
<PackageReference Update="Npgsql.LegacyPostgis" Version="4.1.3" />
57
</ItemGroup>
68

79
<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
10+
<!-- Any update of these version must be accompanied by the appropriate
11+
change in EF6.PG/content -->
812
<PackageReference Update="Npgsql" Version="4.0.10" />
913
<PackageReference Update="Npgsql.LegacyPostgis" Version="4.0.10" />
1014
</ItemGroup>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<configuration>
2+
<configSections>
3+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
4+
</configSections>
5+
<system.data>
6+
<DbProviderFactories>
7+
<remove invariant="Npgsql" />
8+
<add name="Npgsql Provider" invariant="Npgsql" description=".NET Framework Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql, Version=4.1.3.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
9+
</DbProviderFactories>
10+
</system.data>
11+
</configuration>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<configuration>
2+
<configSections>
3+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
4+
</configSections>
5+
<system.data>
6+
<DbProviderFactories>
7+
<remove invariant="Npgsql" />
8+
<add name="Npgsql Provider" invariant="Npgsql" description=".NET Framework Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql, Version=4.1.3.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
9+
</DbProviderFactories>
10+
</system.data>
11+
</configuration>

0 commit comments

Comments
 (0)