Skip to content

Commit 912cdee

Browse files
committed
Use Npgsql 4.1 unless targeting net45
1 parent d120f9b commit 912cdee

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

Directory.Build.targets

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
<Project>
2-
<ItemGroup>
2+
<ItemGroup Condition="'$(TargetFramework)' != 'net45'">
3+
<PackageReference Update="Npgsql" Version="4.1.2" />
4+
<PackageReference Update="Npgsql.LegacyPostgis" Version="4.1.2" />
5+
</ItemGroup>
6+
7+
<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
38
<PackageReference Update="Npgsql" Version="4.0.10" />
49
<PackageReference Update="Npgsql.LegacyPostgis" Version="4.0.10" />
10+
</ItemGroup>
11+
12+
<ItemGroup>
513
<PackageReference Update="EntityFramework" Version="6.3.0" />
614

715
<PackageReference Update="NUnit" Version="3.12.0" />
816
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.3.0" />
917
<PackageReference Update="NUnit3TestAdapter" Version="3.15.1" />
1018
<PackageReference Update="NLog" Version="4.6.7" />
1119
</ItemGroup>
12-
</Project>
20+
</Project>

EF6.PG.Tests/EF6.PG.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<LangVersion>latest</LangVersion>
4-
<TargetFrameworks>net45;netcoreapp3.0</TargetFrameworks>
4+
<TargetFrameworks>net45;netcoreapp3.1</TargetFrameworks>
55
<RootNamespace>EntityFramework6.Npgsql.Tests</RootNamespace>
66
<AssemblyName>EntityFramework6.Npgsql.Tests</AssemblyName>
77
</PropertyGroup>

EF6.PG/EF6.PG.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PackageTags>npgsql postgresql postgres data database entity framework ef orm</PackageTags>
88
<VersionPrefix>6.4.0</VersionPrefix>
99
<LangVersion>latest</LangVersion>
10-
<TargetFrameworks>net45;netstandard21</TargetFrameworks>
10+
<TargetFrameworks>net45;net461;netstandard21</TargetFrameworks>
1111
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1212
<NoWarn>CS1591</NoWarn>
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@@ -34,7 +34,7 @@
3434
<None Include="content/Web.config.transform" Pack="true" PackagePath="content/net45" />
3535
<None Include="postgresql.png" Pack="true" PackagePath="" />
3636
</ItemGroup>
37-
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
37+
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'net461' ">
3838
<Reference Include="System" />
3939
<Reference Include="System.Core" />
4040
<Reference Include="System.Data" />

EntityFramework6.Npgsql.sln

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio 15
43
VisualStudioVersion = 15.0.27703.2035
54
MinimumVisualStudioVersion = 10.0.40219.1
@@ -32,10 +31,6 @@ Global
3231
GlobalSection(SolutionProperties) = preSolution
3332
HideSolutionNode = FALSE
3433
EndGlobalSection
35-
GlobalSection(NestedProjects) = preSolution
36-
{3EC85CBA-5B79-11E3-8104-0022198AB089} = {8537E50E-CF7F-49CB-B4EF-3E2A1B11F050}
37-
{4A0A42DE-C8B8-11E4-8EC9-005056A163A4} = {ED612DB1-AB32-4603-95E7-891BACA71C39}
38-
EndGlobalSection
3934
GlobalSection(ExtensibilityGlobals) = postSolution
4035
SolutionGuid = {84B4C9EA-ED4F-4E87-8809-297958315622}
4136
EndGlobalSection

0 commit comments

Comments
 (0)