BitHelp.Core.Validation
0.17.0
dotnet add package BitHelp.Core.Validation --version 0.17.0
NuGet\Install-Package BitHelp.Core.Validation -Version 0.17.0
<PackageReference Include="BitHelp.Core.Validation" Version="0.17.0" />
paket add BitHelp.Core.Validation --version 0.17.0
#r "nuget: BitHelp.Core.Validation, 0.17.0"
// Install BitHelp.Core.Validation as a Cake Addin #addin nuget:?package=BitHelp.Core.Validation&version=0.17.0 // Install BitHelp.Core.Validation as a Cake Tool #tool nuget:?package=BitHelp.Core.Validation&version=0.17.0
BitHelp.Core.Validation
This project facilitates the validation of an entity's properties.
Getting Started
Installation process
This package is available through Nuget Packages: https://www.nuget.org/packages/BitHelp.Core.Validation
Nuget
Install-Package BitHelp.Core.Validation
.NET CLI
dotnet add package BitHelp.Core.Validation
Latest releases
Release 0.17.0
- feat: Add RequiredIfOtherIsNullIsValid
- feat: Update Sonar Cloud Analyze
To read about others releases access RELEASES.md
Build and Test
Using Visual Studio Code, you can build and test the project from the terminal.
Build and restore the project
dotnet restore
dotnet build --no-restore
Tests
dotnet test --no-build --verbosity normal
Report Generator
Coverlet is used as a package in the test project, to generate the test coverage file. But to generate a report, the Report Generator must be installed on the computer, in this case in global scope. In this project I am using version 4.8.6.
dotnet tool install --global dotnet-reportgenerator-globaltool --version 4.8.6
Coverage
To generate the test report, run the command below:
rm -rf ./coverage ./test/bin ./src/bin ./TestResults
dotnet restore
dotnet build --no-restore
dotnet test --no-build --verbosity=normal --collect:"XPlat Code Coverage" --results-directory ./coverage
reportgenerator "-reports:coverage/**/coverage.cobertura.xml" "-targetdir:coverage/report" -reporttypes:Html
Upon execution, the command will generate a test report in the ./coverage/report.
So I don't have to run each command for each test that wants to generate the report, I created a ./buildReport.sh to make it easier, so just run the shell script below:
./buildReport.sh
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- BitHelp.Core.Extend (>= 0.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.17.0 | 79 | 11/6/2024 |
0.16.0 | 297 | 10/30/2023 |
0.15.1 | 196 | 5/12/2023 |
0.15.0 | 310 | 1/12/2023 |
0.14.0 | 313 | 1/10/2023 |
0.13.0 | 439 | 8/2/2022 |
0.12.0 | 433 | 7/28/2022 |
0.11.0 | 485 | 3/17/2022 |
0.10.0 | 360 | 6/23/2021 |
0.9.0 | 361 | 4/30/2021 |
0.8.0 | 327 | 4/29/2021 |
0.7.0 | 335 | 4/26/2021 |
0.6.1 | 356 | 3/3/2021 |
0.6.0 | 501 | 10/7/2020 |
0.5.1 | 504 | 9/8/2020 |
0.5.0 | 654 | 3/6/2020 |
0.4.0 | 641 | 2/12/2020 |
0.3.0 | 582 | 2/12/2020 |
0.2.0 | 600 | 2/11/2020 |
0.1.0 | 544 | 2/11/2020 |