Skip to content

Commit

Permalink
Fixed mongo options validate. (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
nscheibe authored Feb 2, 2023
1 parent 191fc31 commit 1dfc426
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
6 changes: 0 additions & 6 deletions src/Context/Context.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.0.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/Context/MongoOptionsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static MongoOptions<TMongoDBContext> Validate<TMongoDBContext>(
this MongoOptions<TMongoDBContext>? mongoOptions)
where TMongoDBContext : IMongoDbContext
{
mongoOptions.Validate();
Validate(mongoOptions as MongoOptions);

return mongoOptions!;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Dependencies.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup Label="Framework Versions">
<TestProjectTargetFrameworks>netcoreapp3.1;net5.0;net6.0;net7.0</TestProjectTargetFrameworks>
<ResourceProjectTargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net6.0;net7.0</ResourceProjectTargetFrameworks>
<TestProjectTargetFrameworks>net6.0;net7.0</TestProjectTargetFrameworks>
<ResourceProjectTargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</ResourceProjectTargetFrameworks>
</PropertyGroup>
</Project>
6 changes: 0 additions & 6 deletions src/Prime.Extensions/Prime.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.0.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" />
Expand Down

0 comments on commit 1dfc426

Please sign in to comment.