AutoWrapper.Core 5.0.0-rc-03

.NET 5.0
This is a prerelease version of AutoWrapper.Core.
dotnet add package AutoWrapper.Core --version 5.0.0-rc-03
NuGet\Install-Package AutoWrapper.Core -Version 5.0.0-rc-03
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AutoWrapper.Core" Version="5.0.0-rc-03" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AutoWrapper.Core --version 5.0.0-rc-03
#r "nuget: AutoWrapper.Core, 5.0.0-rc-03"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AutoWrapper.Core as a Cake Addin
#addin nuget:?package=AutoWrapper.Core&version=5.0.0-rc-03&prerelease

// Install AutoWrapper.Core as a Cake Tool
#tool nuget:?package=AutoWrapper.Core&version=5.0.0-rc-03&prerelease

This is the 3rd version of the RC release to test out .NET 5 support. Alot of code refactoring has been done for v5 and there are breaking changes. I would really appreciate if you could test it out as well to better improve this project.

Please provide feedback if there are any issues you encountered. Thank you!

Breaking changes

  • This release only supports .NET 5
  • Middleware has been renamed from UseApiResponseAndExceptionWrapper to UseAutoWrapper. Make sure to update your Startup.cs to use the new name.
  • ProblemDetails is now the default exception format
  • UseApiProblemDetailsException has been renamed to DisableProblemDetailsException
  • Removed Newtonsoft.Json dependency and replaced it with System.Text.Json
  • Use the interface IApiResponse model instead of the concrete ApiResponse model for returning responses using the default format. This allows you to add your own properties that will wrapped within the Result property.
  • AutoWrapIgnore and RequestDataLogIgnore attributes now leaves under AutoWrapper.Attributes namespace. The implementation was changed from using IActionFilter to use Attribute, eliminating all the request header logic.
  • The following options has been removed:
    • ApiVersion
    • ReferenceLoopHandling
    • UseCustomSchema

ReferenceLoopHandling and DefaultContractResolver aren't still supported in .NET 5 that's why handling reference loop and ApiResponse property mappings will not be supported when targetting .NET 5. .NET Core 3.1 will still use Newtonsoft.Json and it's only supported by AutoWrapper ⇐ v4.5.0

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on AutoWrapper.Core:

Package Downloads
MarketingBox.Sdk.Common

Package Description

CodeZero

CodeZero is a set of common implementations to help you implementing Clean Architecture, DDD, CQRS, Specification Patterns and another facilities for new modern web applications is an open-source project written in .NET Core.

Shaesk.Auth

This package add auth controller your project auto. check sample project open github.

Lve.Emall.MemberService.Application

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on AutoWrapper.Core:

Repository Stars
proudmonkey/ApiBoilerPlate
A simple yet organized project template for building ASP.NET Core APIs in .NET Core 3.1
Version Downloads Last updated
5.0.0-rc-03 6,475 8/25/2021
5.0.0-rc-02 223 8/13/2021
5.0.0-rc 232 8/4/2021
4.5.0 321,303 3/9/2021
4.4.0 12,784 2/4/2021
4.3.2 12,040 1/12/2021
4.3.1 45,145 9/23/2020
4.3.0 14,890 8/3/2020
4.2.2 56,158 6/4/2020
4.2.1 481 6/3/2020
4.2.0 830 6/2/2020
4.2.0-rc 470 5/23/2020
4.1.0 12,504 4/19/2020
4.1.0-rc2 510 3/17/2020
4.1.0-rc 283 3/16/2020
4.0.1 40,159 3/15/2020
4.0.0 6,854 3/3/2020
4.0.0-rc 500 2/26/2020
3.0.0 14,331 2/2/2020
2.1.0 42,769 11/9/2019
2.0.2 731 11/6/2019
2.0.1 2,593 10/17/2019
2.0.0-rc2 352 10/15/2019
2.0.0-rc 354 10/14/2019
1.2.0 611 10/7/2019
1.1.0 517 10/4/2019
1.0.0 1,522 9/23/2019
1.0.0-rc 411 9/14/2019

See project repo for release notes.