Skip to content

Commit a14fef8

Browse files
v3.0.0
1 parent c317c41 commit a14fef8

File tree

5 files changed

+21
-40
lines changed

5 files changed

+21
-40
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<RootNamespace>snglrtycrvtureofspce.Core.Samples.BasicApi</RootNamespace>
7-
<!-- Samples don't need strict XML documentation -->
87
<GenerateDocumentationFile>false</GenerateDocumentationFile>
98
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
109
</PropertyGroup>
@@ -14,9 +13,9 @@
1413
</ItemGroup>
1514

1615
<ItemGroup>
17-
<PackageReference Include="FluentValidation" Version="11.12.0" />
18-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" />
19-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
16+
<PackageReference Include="FluentValidation" Version="12.1.1" />
17+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.2" />
18+
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.1.1" />
2019
</ItemGroup>
2120

2221
</Project>

src/snglrtycrvtureofspce.Core.Contracts/snglrtycrvtureofspce.Core.Contracts.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<IsPackable>true</IsPackable>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
7-
87
<Title>snglrtycrvtureofspce.Core.Contracts</Title>
98
<Description>Interfaces and contracts for snglrtycrvtureofspce.Core SDK. Use this package when you only need the interfaces without the full implementation.</Description>
109
</PropertyGroup>

src/snglrtycrvtureofspce.Core/Extensions/CollectionExtensions.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,6 @@ public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> source) where
141141
public static T? RandomElement<T>(this IList<T> source)
142142
=> source.Count == 0 ? default : source[Random.Shared.Next(source.Count)];
143143

144-
/// <summary>
145-
/// Shuffles the collection.
146-
/// </summary>
147-
/// <typeparam name="T">The type of elements in the collection.</typeparam>
148-
/// <param name="source">The collection to shuffle.</param>
149-
/// <returns>A shuffled collection.</returns>
150-
public static IEnumerable<T> Shuffle<T>(this IEnumerable<T> source)
151-
=> source.OrderBy(_ => Random.Shared.Next());
152-
153144
/// <summary>
154145
/// Appends an item to the collection.
155146
/// </summary>

src/snglrtycrvtureofspce.Core/snglrtycrvtureofspce.Core.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
4+
<TargetFramework>net10.0</TargetFramework>
55
<OutputType>Library</OutputType>
66
<IsPackable>true</IsPackable>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -23,24 +23,17 @@
2323
</ItemGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="6.4.0" />
27-
<PackageReference Include="FluentValidation" Version="11.12.0" />
28-
<PackageReference Include="MediatR" Version="12.5.0" />
29-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.29" />
30-
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.29" />
31-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" />
32-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
33-
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
26+
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.1" />
27+
<PackageReference Include="FluentValidation" Version="12.1.1" />
28+
<PackageReference Include="MediatR" Version="13.1.0" />
29+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.2" />
30+
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="10.0.2" />
31+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.2" />
32+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.2" />
33+
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
3434
<PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
35-
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="6.1.0" />
36-
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.5.0" />
37-
</ItemGroup>
38-
39-
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
40-
<PackageReference Update="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.0" />
41-
<PackageReference Update="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.0" />
42-
<PackageReference Update="Microsoft.EntityFrameworkCore" Version="8.0.0" />
43-
<PackageReference Update="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
35+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
36+
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="7.0.0" />
4437
</ItemGroup>
4538

4639
<ItemGroup>

test/snglrtycrvtureofspce.Core.Tests/snglrtycrvtureofspce.Core.Tests.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
4+
<TargetFramework>net10.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<IsTestProject>true</IsTestProject>
7-
87
<NoWarn>$(NoWarn);CS1591</NoWarn>
98
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
109
</PropertyGroup>
1110

1211
<ItemGroup>
1312
<PackageReference Include="FluentAssertions" Version="8.8.0" />
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
15-
<PackageReference Include="Moq" Version="4.20.70" />
16-
<PackageReference Include="xunit" Version="2.6.2" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
14+
<PackageReference Include="Moq" Version="4.20.72" />
15+
<PackageReference Include="xunit" Version="2.9.3" />
16+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
1817
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1918
<PrivateAssets>all</PrivateAssets>
2019
</PackageReference>

0 commit comments

Comments
 (0)