v0.4
v0.4.3
Improvements
CommitAsync
now accepts nullable parameters- Added generic overload for
MockMe.ASetting()
v0.4.2
Improvements
- Improved exception message when there is no valid json in the database.
- Added
GetRequiredValue<T>
extension toIConfiguration
with default value option - Mock
IConfiguration
return values for not defined settings can now be configured by overridingServiceSpec.GetDefaultSettingsValue()
Bugfixes
ObjectUserType
was causing its data to be corrupted when it contains special characters, fixed.
v0.4.1
Bugfixes
- Automatic
StyleCop.Analyzer
reference conflicts withDirectory.Packages.props
usage, fixed
v0.4.0
.NET Upgrade
DO now supports .NET 7! Below you can find a task list to upgrade your projects.
- [ ] Upgrade .NET and C# versions
- [ ] in projects
- [ ] in docker files
- [ ] in GitHub workflows
- [ ] Migrate to central package management
- [ ] Utilize regex source generator
Upgrade .NET and C# versions
in projects
- Change the C# version to
11.0
in<LangVersion>
tag inDirectory.Build.props
. - Change the .NET version to
net7.0
in<TargetFramework>
tag inDirectory.Build.props
.
in docker files
Update .NET version in Dockerfile
- replace
.../dotnet/aspnet:6.0-focal
to.../dotnet/aspnet:7.0
- replace
.../dotnet/sdk:6.0-focal
to.../dotnet/sdk:7.0
- again docker compose up ✅
in GitHub workflows
Update dotnet-version
to 7
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
Migrate to central package management
- Add
Directory.Packages.props
root - Set
true
to<ManagePackageVersionsCentrally>
- Go through all
.csproj
and collect all packages intoDirectory.Packages.props
and remove versions from all.csproj
.
Visit Central Package Management for more details.
Utilize regex source generator
Use regex source generator where possible.
Visit Regular expressions for more details.
Library Upgrades
Package | Old Version | New Version |
---|---|---|
FluentNHibernate | 3.2.1 | 3.3.0 |
Microsoft.AspNetCore.Mvc.NewtonsoftJson | 6.0.22 | 7.0.13 |
Microsoft.Extensions.Configuration.Abstractions | 6.0.0 | 7.0.0 |
Microsoft.Extensions.Configuration.Binder | 6.0.0 | 7.0.4 |
Moq | 4.18.4 | 4.20.69 |
MySql.Data | 8.1.0 | 8.2.0 |
NUnit | 3.13.3 | 3.14.0 |