Skip to content

Commit

Permalink
Update to net5.0 and all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
schotime committed Nov 13, 2020
1 parent cf50d31 commit 01b9f8a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/NPoco.JsonNet/NPoco.JsonNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>Provides an implementation to use Json.NET as the serializer for serialized columns</Description>
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>NPoco.JsonNet</AssemblyName>
<PackageId>NPoco.JsonNet</PackageId>
<PackageTags>orm;sql;micro-orm;database;mvc</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion src/NPoco.SqlServer/NPoco.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>An extremely easy to use Micro-ORM supporting Sql Server.</Description>
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>NPoco.SqlServer</AssemblyName>
<PackageId>NPoco.SqlServer</PackageId>
<Authors>Adam Schröder</Authors>
Expand Down
7 changes: 4 additions & 3 deletions src/NPoco/NPoco.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>An extremely easy to use Micro-ORM supporting Sql Server, MySQL, PostgreSQL, Oracle, Sqlite, SqlCE.</Description>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>NPoco</AssemblyName>
<PackageId>NPoco</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
Expand All @@ -21,8 +21,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Condition=" '$(TargetFramework)' == 'netstandard2.0' " Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.1" />
<PackageReference Include="System.Linq.Async" Version="4.1.1" />
<PackageReference Condition="'$(TargetFramework)' == 'net461' " Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'netstandard2.0' " Include="Microsoft.Bcl.AsyncInterfaces" Version="1.1.1" />
<PackageReference Include="System.Linq.Async" Version="5.0.0" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions test/NPoco.Tests/FluentTests/QueryTests/QueryProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public void QueryWithProjectionAndEnclosedMethod()
SetCurrentCulture(new CultureInfo("en-US"));

var users = Database.Query<User>()
.ProjectTo(x => new ProjectUser2 { FormattedAge = string.Format("{0:n}", x.Age) });
.ProjectTo(x => new ProjectUser2 { FormattedAge = x.Age.ToString("n2") });

Assert.AreEqual("21.00", users[0].FormattedAge);
Assert.AreEqual(15, users.Count);
Expand All @@ -384,7 +384,7 @@ public void QueryWithProjectionAndEnclosedMethod1()
// these arguments are properly supported (ProcessMethodSearchRecursively supports
// NewArrayExpression).
var users = Database.Query<User>()
.ProjectTo(x => new ProjectUser2 { FormattedAge = string.Format("{0:n} {1:n} {2:n} {3:n} {4:n} {5:n} {6:n}",
.ProjectTo(x => new ProjectUser2 { FormattedAge = string.Format("{0:n2} {1:n2} {2:n2} {3:n2} {4:n2} {5:n2} {6:n2}",
x.Age, x.Age, x.Age, x.Age, x.Age, x.Age, x.Age) });

Assert.AreEqual("21.00 21.00 21.00 21.00 21.00 21.00 21.00", users[0].FormattedAge);
Expand Down
10 changes: 5 additions & 5 deletions test/NPoco.Tests/NPoco.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>NPoco Tests</Description>
<VersionPrefix>5.0.0</VersionPrefix>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net5.0</TargetFrameworks>
<AssemblyName>NPoco.Tests</AssemblyName>
<OutputType>Library</OutputType>
<PackageId>NPoco.Tests</PackageId>
Expand All @@ -22,12 +22,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.8" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="5.0.0" />
<PackageReference Include="FirebirdSql.Data.FirebirdClient" Version="7.5.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
</ItemGroup>
Expand Down

0 comments on commit 01b9f8a

Please sign in to comment.