Skip to content

Commit 80fb04f

Browse files
committed
Some corrections to .NET Standard 2.0.0 build
1 parent ad3f424 commit 80fb04f

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ env:
1616
before_script:
1717
- dotnet restore -v Minimal
1818
script:
19-
- cd test/EFCore.PG.Tests && dotnet xunit && cd ../../
20-
- cd test/EFCore.PG.FunctionalTests && dotnet xunit && cd ../../
21-
- cd test/EFCore.PG.Design.FunctionalTests && dotnet xunit && cd ../../
19+
- cd test/EFCore.PG.Tests && dotnet xunit -framework netcoreapp2.0 && cd ../../
20+
- cd test/EFCore.PG.FunctionalTests && dotnet xunit -framework netcoreapp2.0 && cd ../../
21+
- cd test/EFCore.PG.Design.FunctionalTests && dotnet xunit -framework netcoreapp2.0 && cd ../../
2222

2323
cache:
2424
directories:

src/EFCore.PG/EFCore.PG.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<VersionPrefix>2.0.0</VersionPrefix>
45
<TargetFrameworks>netstandard2.0</TargetFrameworks>
56
<AssemblyName>Npgsql.EntityFrameworkCore.PostgreSQL</AssemblyName>
67
<RootNamespace>Microsoft.EntityFrameworkCore</RootNamespace>

test/EFCore.PG.Design.FunctionalTests/EFCore.PG.Design.FunctionalTests.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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
55
<PreserveCompilationContext>true</PreserveCompilationContext>
66
<AssemblyName>Npgsql.EntityFrameworkCore.PostgreSQL.Design.FunctionalTests</AssemblyName>
77
<RootNamespace>Npgsql.EntityFrameworkCore.PostgreSQL.Design.FunctionalTests</RootNamespace>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
55
<AssemblyName>Npgsql.EntityFrameworkCore.PostgreSQL.FunctionalTests</AssemblyName>
66
<RootNamespace>Npgsql.EntityFrameworkCore.PostgreSQL.FunctionalTests</RootNamespace>
77
<NoWarn>xUnit1004;xUnit1013</NoWarn>
@@ -24,6 +24,7 @@
2424
<ItemGroup>
2525
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-*" />
2626
<PackageReference Include="xunit.core" Version="2.3.0-*" />
27+
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0-*" />
2728
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0" />
2829
<PackageReference Include="Microsoft.EntityFrameworkCore.Specification.Tests" Version="2.0.0" />
2930
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.0.0" />

test/EFCore.PG.Tests/EFCore.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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
55
<AssemblyName>Npgsql.EntityFrameworkCore.PostgreSQL.Tests</AssemblyName>
66
<RootNamespace>Npgsql.EntityFrameworkCore.PostgreSQL.Tests</RootNamespace>
77
</PropertyGroup>

0 commit comments

Comments
 (0)