Skip to content

Commit ec38bc2

Browse files
authored
Upgrade to Blazor preview 7 (#1)
1 parent c862761 commit ec38bc2

File tree

5 files changed

+59
-55
lines changed

5 files changed

+59
-55
lines changed

README.md

Lines changed: 45 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
1-
# Blazor-Validation
2-
3-
4-
Blazor-Validation is a validation agnostic library for validating forms in Blazor - [Microsoft aspdotnet Blazor project].
5-
6-
## Installation
7-
You can download the latest release / pre-release NuGet packages from the official NuGet pages:
8-
- [Blazor-Validation]
9-
- [Blazor-FluentValidation]
10-
11-
## Getting started
12-
1. Add a reference to PeterLeslieMorris.Blazor.Validation
13-
2. Inside the `<EditForm>` in your razor files, add `<PeterLeslieMorris.Blazor.Validation.Validate/>`
14-
3. In startup.cs add `using PeterLeslieMorris.Blazor.Validation` and then add the relevant validation in the `ConfigureServices` method.
15-
16-
- `services.AddFormValidation(config => config.AddDataAnnotationsValidation());`
17-
- `services.AddFormValidation(config => config.AddFluentValidation();`
18-
19-
It is possible to add as many validation providers as you wish
20-
```
21-
services.AddFormValidation(config =>
22-
config
23-
.AddDataAnnotationsValidation()
24-
.AddFluentValidation()
25-
);
26-
```
27-
28-
The standard Blazor components `<ValidationSummary>` and `<ValidationMessage>` will now work with your selected validation options.
29-
30-
31-
32-
### Sample projects
33-
More sample projects will be added as the framework develops.
34-
- [Data Annotations Sample] - Shows how to use DataAnnotations to validate.
35-
- [FluentValidation Sample] - Shows how to use the [FluentValidation.com] library to validate.
36-
37-
[Microsoft aspdotnet blazor project]: <https://github.com/aspnet/Blazor>
38-
[Blazor-Validation]: <https://www.nuget.org/packages/PeterLeslieMorris.Blazor.Validation/>
39-
[Blazor-FluentValidation]: <https://www.nuget.org/packages/PeterLeslieMorris.Blazor.FluentValidation/>
40-
[Data Annotations Sample]: <https://github.com/mrpmorris/blazor-validation/tree/master/samples/01-DataAnnotationsValidation/>
41-
[FluentValidation Sample]: <https://github.com/mrpmorris/blazor-validation/tree/master/samples/02-FluentValidation/>>
1+
# Blazor-Validation
2+
3+
4+
Blazor-Validation is a validation agnostic library for validating forms in Blazor - [Microsoft aspdotnet Blazor project].
5+
6+
## Installation
7+
You can download the latest release / pre-release NuGet packages from the official NuGet pages:
8+
- [Blazor-Validation]
9+
- [Blazor-FluentValidation]
10+
11+
## Getting started
12+
1. Add a reference to PeterLeslieMorris.Blazor.Validation
13+
2. Inside the `<EditForm>` in your razor files, add `<PeterLeslieMorris.Blazor.Validation.Validate/>`
14+
3. In startup.cs add `using PeterLeslieMorris.Blazor.Validation` and then add the relevant validation in the `ConfigureServices` method.
15+
16+
- `services.AddFormValidation(config => config.AddDataAnnotationsValidation());`
17+
- `services.AddFormValidation(config => config.AddFluentValidation();`
18+
19+
It is possible to add as many validation providers as you wish
20+
```
21+
services.AddFormValidation(config =>
22+
config
23+
.AddDataAnnotationsValidation()
24+
.AddFluentValidation()
25+
);
26+
```
27+
28+
The standard Blazor components `<ValidationSummary>` and `<ValidationMessage>` will now work with your selected validation options.
29+
30+
### Sample projects
31+
More sample projects will be added as the framework develops.
32+
- [Data Annotations Sample] - Shows how to use DataAnnotations to validate.
33+
- [FluentValidation Sample] - Shows how to use the [FluentValidation.com] library to validate.
34+
35+
## What's new
36+
### New in 0.5.0
37+
- Upgraded to Blazor Preview 7
38+
### New in 0.4.0
39+
- Initial public release
40+
41+
[Microsoft aspdotnet blazor project]: <https://github.com/aspnet/Blazor>
42+
[Blazor-Validation]: <https://www.nuget.org/packages/PeterLeslieMorris.Blazor.Validation/>
43+
[Blazor-FluentValidation]: <https://www.nuget.org/packages/PeterLeslieMorris.Blazor.FluentValidation/>
44+
[Data Annotations Sample]: <https://github.com/mrpmorris/blazor-validation/tree/master/samples/01-DataAnnotationsValidation/>
45+
[FluentValidation Sample]: <https://github.com/mrpmorris/blazor-validation/tree/master/samples/02-FluentValidation/>

samples/01-DataAnnotationsValidation/DataAnnotationsValidationSample/DataAnnotationsValidationSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview6.19307.2" />
11-
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview6.19307.2" PrivateAssets="all" />
12-
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview6.19307.2" PrivateAssets="all" />
10+
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview7.19365.7" />
11+
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview7.19365.7" PrivateAssets="all" />
12+
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview7.19365.7" PrivateAssets="all" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

samples/02-FluentValidation/FluentValidationSample/FluentValidationSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview6.19307.2" />
11-
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview6.19307.2" PrivateAssets="all" />
12-
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview6.19307.2" PrivateAssets="all" />
10+
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview7.19365.7" />
11+
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview7.19365.7" PrivateAssets="all" />
12+
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview7.19365.7" PrivateAssets="all" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

src/PeterLeslieMorris.Blazor.FluentValidation/PeterLeslieMorris.Blazor.FluentValidation.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<SignAssembly>false</SignAssembly>
66
<AssemblyOriginatorKeyFile>MrPMorris.snk</AssemblyOriginatorKeyFile>
7-
<AssemblyVersion>0.4.0.0</AssemblyVersion>
8-
<FileVersion>0.4.0.0</FileVersion>
9-
<Version>0.4.0.0-pre</Version>
7+
<AssemblyVersion>0.5.0.0</AssemblyVersion>
8+
<FileVersion>0.5.0.0</FileVersion>
9+
<Version>0.5.0.0-pre</Version>
1010
<Description>FluentValidation for Blazor</Description>
1111
<Copyright>Peter Morris</Copyright>
1212
<PackageLicenseFile>LICENCE</PackageLicenseFile>
@@ -20,7 +20,7 @@
2020

2121
<ItemGroup>
2222
<PackageReference Include="FluentValidation" Version="8.4.0" />
23-
<PackageReference Include="PeterLeslieMorris.Blazor.Validation" Version="0.4.0-pre" />
23+
<PackageReference Include="PeterLeslieMorris.Blazor.Validation" Version="0.5.0-pre" />
2424
</ItemGroup>
2525

2626
<ItemGroup>

src/PeterLeslieMorris.Blazor.Validation/PeterLeslieMorris.Blazor.Validation.csproj

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

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
@@ -8,7 +8,7 @@
88
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1010
<PackageId>PeterLeslieMorris.Blazor.Validation</PackageId>
11-
<Version>0.4.0.0-pre</Version>
11+
<Version>0.5.0.0-pre</Version>
1212
<Authors>Peter Morris</Authors>
1313
<Company>Peter Morris</Company>
1414
<Product>PeterLeslieMorris.Blazor.Validation</Product>
@@ -19,7 +19,7 @@
1919
<PackageIconUrl>https://raw.githubusercontent.com/mrpmorris/blazor-validation/master/docs/images/blazor-validation-logo-small.png</PackageIconUrl>
2020
<RepositoryUrl>https://github.com/mrpmorris/blazor-validation</RepositoryUrl>
2121
<PackageTags>Blazor Validation</PackageTags>
22-
<AssemblyVersion>0.4.0.0</AssemblyVersion>
22+
<AssemblyVersion>0.5.0.0</AssemblyVersion>
2323
<FileVersion>0.4.0.0</FileVersion>
2424
<SignAssembly>true</SignAssembly>
2525
<AssemblyOriginatorKeyFile>MrPMorris.snk</AssemblyOriginatorKeyFile>
@@ -34,7 +34,7 @@
3434
</ItemGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="Microsoft.AspNetCore.Components.Browser" Version="3.0.0-preview6.19307.2" />
37+
<PackageReference Include="Microsoft.AspNetCore.Components.Browser" Version="3.0.0-preview7.19365.7" />
3838
</ItemGroup>
3939

4040
<ItemGroup>

0 commit comments

Comments
 (0)