generated from SwissLife-OSS/template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Misg/central package management2 (#82)
Co-authored-by: Normen Scheiber <[email protected]>
- Loading branch information
Showing
32 changed files
with
215 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageVersion Include="Moq" Version="4.16.1" /> | ||
<PackageVersion Include="Snapshooter.Xunit" Version="0.12.0" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.0.0" /> | ||
<PackageVersion Include="Squadron.Mongo" Version="0.17.0" /> | ||
<PackageVersion Include="xunit" Version="2.4.2" /> | ||
<PackageVersion Include="Xunit.Priority" Version="1.1.6" /> | ||
<PackageVersion Include="FluentAssertions" Version="6.2.0" /> | ||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.3" /> | ||
<PackageVersion Include="coverlet.msbuild" Version="3.1.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageVersion Include="MongoDB.Driver" Version="2.19.0" /> | ||
<PackageVersion Include="MongoDB.Driver.Core.Extensions.DiagnosticSources" Version="1.3.0" /> | ||
<PackageVersion Include="System.Text.Json" Version="7.0.0" /> | ||
<PackageVersion Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0'"> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="7.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="7.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0'"> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="6.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1'"> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="3.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="3.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="3.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="3.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'"> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="2.2.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="2.2.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="2.2.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageRestore> | ||
<add key="enabled" value="True" /> | ||
<add key="automatic" value="True" /> | ||
</packageRestore> | ||
<activePackageSource> | ||
<clear /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</activePackageSource> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project> | ||
|
||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Packages.props, $(MSBuildThisFileDirectory)..))" /> | ||
|
||
<ItemGroup> | ||
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" /> | ||
<PackageVersion Include="NSwag.AspNetCore" Version="13.18.0" /> | ||
<PackageVersion Include="MongoDB.Extensions.Migration" Version="1.4.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using MongoDB.Extensions.Context.Internal; | ||
|
||
namespace MongoDB.Extensions.Context.AllowedTypes.Tests.Helpers; | ||
|
||
internal static class TestHelpers | ||
{ | ||
public static object GetTypeObjectSerializerContent() | ||
{ | ||
return new | ||
{ | ||
AllowedTypes = TypeObjectSerializer.AllowedTypes | ||
.Select(pair => new KeyValuePair<string?, bool>(pair.Key.FullName, pair.Value)) | ||
.OrderBy(pair => pair.Key), | ||
TypeObjectSerializer.AllowedTypesByNamespaces, | ||
TypeObjectSerializer.AllowedTypesByDependencies | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hots__/MongoDatabaseBuilderTests.AddAllowedTypes_AddAllowedTypesByNamespaces_Success.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"AllowedTypes": {}, | ||
"AllowedTypes": [], | ||
"AllowedTypesByNamespaces": [ | ||
"Mongo", | ||
"SwissLife" | ||
|
4 changes: 2 additions & 2 deletions
4
...snapshots__/MongoDatabaseBuilderTests.AddAllowedTypes_AddAllowedTypesByTypes_Success.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._/MongoDatabaseBuilderTests.AddAllowedTypes_AddAllowedTypesOfAllDependencies_Success.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hots__/TypeObjectSerializerTests.AddAllowedTypes_AddAllowedTypesByNamespaces_Success.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"AllowedTypes": {}, | ||
"AllowedTypes": [], | ||
"AllowedTypesByNamespaces": [ | ||
"Mongo", | ||
"SwissLife" | ||
|
Oops, something went wrong.