Skip to content

Commit 43fbdd6

Browse files
committed
Update README and project dependencies for ASP.NET Core 8 support
1 parent 5556810 commit 43fbdd6

3 files changed

Lines changed: 10 additions & 14 deletions

File tree

Directory.Packages.props

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageVersion Include="PolySharp" Version="1.14.1" />
76
<PackageVersion Include="System.ComponentModel.Annotations" Version="5.0.0" />
87
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
9-
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
8+
<PackageVersion Include="Swashbuckle.AspNetCore" Version="8.1.4" />
109
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
11-
<PackageVersion Include="xunit" Version="2.7.1" />
12-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.8" />
13-
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
14-
<PackageVersion Include="BenchmarkDotNet" Version="0.13.12" />
15-
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
10+
<PackageVersion Include="xunit" Version="2.9.3" />
11+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
12+
<PackageVersion Include="coverlet.collector" Version="10.0.0" />
13+
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />
14+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
1615
</ItemGroup>
1716
</Project>

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Install the library from [NuGet](https://www.nuget.org/packages/MiniValidation):
1111
dotnet add package MiniValidation
1212
```
1313

14-
### ASP.NET Core 6+ Projects
15-
If installing into an ASP.NET Core 6+ project, consider using the [MinimalApis.Extensions](https://www.nuget.org/packages/MinimalApis.Extensions) package instead, which adds extensions specific to ASP.NET Core, including a validation endpoint filter for .NET 7 apps:
14+
### ASP.NET Core 8+ Projects
15+
If installing into an ASP.NET Core 8+ project, consider using the [MinimalApis.Extensions](https://www.nuget.org/packages/MinimalApis.Extensions) package instead, which adds extensions specific to ASP.NET Core, including a validation endpoint filter:
1616
``` console
1717
dotnet add package MinimalApis.Extensions
1818
```
@@ -121,6 +121,7 @@ class WidgetWithCustomValidation : Widget, IValidatableObject
121121
}
122122
}
123123
```
124+
124125
``` console
125126
widget.exe
126127
Widget 'widget' is valid!
@@ -147,7 +148,7 @@ Widget 'MiniValidation' is valid!
147148
Widget 'MiniValidation' is valid!
148149
```
149150

150-
### Web app (.NET 6)
151+
### Web app (.NET 8+)
151152
```csharp
152153
using System.ComponentModel.DataAnnotations;
153154
using MiniValidation;

src/MiniValidation/MiniValidation.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
<ItemGroup>
1616
<None Include="../../README.md" Pack="true" PackagePath="\" />
1717
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
18-
<PackageReference Include="PolySharp">
19-
<PrivateAssets>all</PrivateAssets>
20-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
21-
</PackageReference>
2218
</ItemGroup>
2319

2420
</Project>

0 commit comments

Comments
 (0)