Skip to content

Commit 832fcc5

Browse files
committed
Define dependency versions in Directory.Build.props
1 parent ef00905 commit 832fcc5

10 files changed

Lines changed: 25 additions & 20 deletions

File tree

Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
<PropertyGroup Label="Package Versions">
3+
<NpgsqlVersion>4.0.3</NpgsqlVersion>
4+
<EFCoreVersion>2.2.0-preview1-34941</EFCoreVersion>
5+
<MicrosoftExtensionsVersion>$(EFCoreVersion)</MicrosoftExtensionsVersion>
6+
</PropertyGroup>
7+
</Project>

NuGet.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
<packageSources>
77
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
88
<add key="DotnetCore" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
9-
<add key="NpgsqlStable" value="https://www.myget.org/F/npgsql/api/v3/index.json" />
109
</packageSources>
1110
</configuration>

src/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<Project>
2+
<Import Project="..\Directory.Build.props" />
3+
24
<ItemGroup>
35
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.8.1" PrivateAssets="All" />
46
</ItemGroup>

src/EFCore.PG.NTS/EFCore.PG.NTS.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,5 @@
2727
</ItemGroup>
2828
<ItemGroup>
2929
<PackageReference Include="Npgsql.NetTopologySuite" Version="1.0.2" />
30-
<PackageReference Include="Npgsql" Version="4.0.3" />
3130
</ItemGroup>
3231
</Project>

src/EFCore.PG.NodaTime/EFCore.PG.NodaTime.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<ProjectReference Include="..\EFCore.PG\EFCore.PG.csproj" />
2727
</ItemGroup>
2828
<ItemGroup>
29-
<PackageReference Include="Npgsql" Version="4.0.3" />
3029
<PackageReference Include="Npgsql.NodaTime" Version="1.0.0" />
3130
</ItemGroup>
3231
</Project>

src/EFCore.PG/EFCore.PG.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
<ItemGroup>
2323
<!-- PrivateAssets="none" is set to flow the EF Core analyzer to users referencing this package
2424
https://github.com/aspnet/EntityFrameworkCore/pull/11350 -->
25-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.0-preview1-34941" PrivateAssets="none" />
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.2.0-preview1-34941" PrivateAssets="none" />
27-
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="2.2.0-preview1-34941" PrivateAssets="none" />
28-
<PackageReference Include="Npgsql" Version="4.0.3" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(EFCoreVersion)" PrivateAssets="none" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="$(EFCoreVersion)" PrivateAssets="none" />
27+
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="$(EFCoreVersion)" PrivateAssets="none" />
28+
<PackageReference Include="Npgsql" Version="$(NpgsqlVersion)" />
2929
</ItemGroup>
3030
<ItemGroup>
3131
<None Update="Properties\NpgsqlStrings.Designer.tt">

test/Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<Project>
2+
<Import Project="..\Directory.Build.props" />
3+
24
<PropertyGroup>
35
<NoWarn>$(NoWarn);xUnit1004</NoWarn>
46
</PropertyGroup>
@@ -10,6 +12,6 @@
1012
<PackageReference Include="xunit.core" Version="2.3.1" />
1113
<PackageReference Include="xunit.assert" Version="2.3.1" />
1214
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0-beta.2.build4010" />
13-
<PackageReference Include="Npgsql" Version="4.0.3" />
15+
<PackageReference Include="Npgsql" Version="$(NpgsqlVersion)" />
1416
</ItemGroup>
1517
</Project>

test/EFCore.PG.FunctionalTests/EFCore.PG.FunctionalTests.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
<ProjectReference Include="..\..\src\EFCore.PG\EFCore.PG.csproj" />
2222
</ItemGroup>
2323
<ItemGroup>
24-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.0-preview1-34941" />
25-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.2.0-preview1-34941" />
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="2.2.0-preview1-34941" />
27-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0-preview1-34941" />
28-
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.2.0-preview1-34941" />
29-
<PackageReference Update="Npgsql" Version="4.0.3" />
24+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(EFCoreVersion)" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="$(EFCoreVersion)" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="$(EFCoreVersion)" />
27+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="$(MicrosoftExtensionsVersion)" />
28+
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="$(MicrosoftExtensionsVersion)" />
3029
</ItemGroup>
3130
</Project>

test/EFCore.PG.Plugins.FunctionalTests/EFCore.PG.Plugins.FunctionalTests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@
1818
<ProjectReference Include="..\..\src\EFCore.PG\EFCore.PG.csproj" />
1919
<ProjectReference Include="..\..\src\EFCore.PG.NTS\EFCore.PG.NTS.csproj" />
2020
<ProjectReference Include="..\EFCore.PG.FunctionalTests\EFCore.PG.FunctionalTests.csproj" />
21-
<PackageReference Update="Npgsql" Version="4.0.3" />
2221
</ItemGroup>
2322
</Project>

test/EFCore.PG.Tests/EFCore.PG.Tests.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0-preview1-34941" />
23-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.0-preview1-34941" />
24-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.2.0-preview1-34941" />
25-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="2.2.0-preview1-34941" />
26-
<PackageReference Update="Npgsql" Version="4.0.3" />
22+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(EFCoreVersion)" />
23+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="$(EFCoreVersion)" />
24+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="$(EFCoreVersion)" />
25+
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(MicrosoftExtensionsVersion)" />
2726
</ItemGroup>
2827

2928
</Project>

0 commit comments

Comments
 (0)