Westwind.AspNetCore
3.5.2
See the version list below for details.
dotnet add package Westwind.AspNetCore --version 3.5.2
NuGet\Install-Package Westwind.AspNetCore -Version 3.5.2
<PackageReference Include="Westwind.AspNetCore" Version="3.5.2" />
<PackageVersion Include="Westwind.AspNetCore" Version="3.5.2" />
<PackageReference Include="Westwind.AspNetCore" />
paket add Westwind.AspNetCore --version 3.5.2
#r "nuget: Westwind.AspNetCore, 3.5.2"
#:package Westwind.AspNetCore@3.5.2
#addin nuget:?package=Westwind.AspNetCore&version=3.5.2
#tool nuget:?package=Westwind.AspNetCore&version=3.5.2
General purpose support library for ASP.NET Core.
### MVC Functionality
* **BaseController and BaseViewModel implementation**
A common base controller class that adds support for an auto-initialized BaseViewModel from which other VMs can inherit. Allows for automatic initialization of common features like ErrorDisplay and Base View models.
* **ViewRenderer**
Render view output to a string using a controller context.
* **AppUser ClaimsPrincipal and Cookie Authentication Helper**
A `AppUser` class that wraps a `ClaimsPrincipal` and makes it easier to add and retrieve claims as well as easily login and logout all from a single helper object.
* **Bootstrap Alert ErrorDisplay Tag Helper and Controller Support Feature**
In most MVC applications you need some sort of error display and this ErrorDisplay TagHelper makes it quick easy to display an Alert box from a custom `ErrorDisplayModel` input. Helper methods like `ShowError()` or `ShowInfo()` on `BaseViewModel` make it very easy to display error and informational messages on pages.
#### Api Functionality
* **Api Error Handling Filter**
A custom API error filter implementation that returns API responses on exceptions. Also provides a standardized `ApiExecption` class that can be used to force responses with specific HTTP response codes.
* **RawRequest Body String Formatter**
API formatter that allows for receiving raw non-json content to `string` and `byte[]` parameters, which otherwise isn't supported by MVC's API implementation. [More info in blog post](https://weblog.west-wind.com/posts/2017/Sep/14/Accepting-Raw-Request-Body-Content-in-ASPNET-Core-API-Controllers).
### General ASP.NET Core
* **Custom Headers Middleware**
Allows adding and removing of HTTP headers to every request using middleware configuration.
* **HttpRequest Extensions**
* `GetBodyStringAsync()` and `GetRawBodyBytesAsync()` - retrieve raw non-JSON content
* `MapPath()` - Map virtual path to physical path on disk
* `Params()` - Return an item from Form, Query or Session collections.
* **DataProtector Wrapper**
Helper to make it easier to use the DataProtector API to create secure tokens.
* **UserState Helper**
The UserState object greatly simplifies working with auth 'cached' token data more easily by storing a single value in a user claim or forms auth ticket that can be easily restored into an typed object. The class supports easily serialization and auto-loading from Claims. Can be extended by subclassing and adding your own values.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Westwind.Utilities (>= 3.1.10)
-
net5.0
- Westwind.Utilities (>= 3.1.10)
-
net6.0
- Westwind.Utilities (>= 3.1.10)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Westwind.AspNetCore:
| Package | Downloads |
|---|---|
|
Tyle_Evmos
Package Description |
|
|
Tyle.Nft
Package Description |
|
|
TyleCSC
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.14 | 3,963 | 3/9/2025 |
| 4.0.12 | 307 | 3/7/2025 |
| 4.0.9 | 299 | 3/6/2025 |
| 4.0.7 | 2,792 | 8/4/2024 |
| 4.0.6 | 201 | 7/27/2024 |
| 4.0.5 | 341 | 7/18/2024 |
| 4.0.4 | 369 | 6/26/2024 |
| 4.0.3 | 619 | 4/28/2024 |
| 4.0.2 | 1,262 | 2/17/2024 |
| 4.0.1 | 235 | 2/15/2024 |
| 4.0.0 | 247 | 2/10/2024 |
| 3.20.0 | 400 | 2/10/2024 |
| 3.11.0 | 239 | 2/6/2024 |
| 3.9.2 | 232 | 1/19/2024 |
| 3.9.0 | 316 | 11/30/2023 |
| 3.8.7 | 2,074 | 8/15/2023 |
| 3.8.5 | 733 | 6/10/2023 |
| 3.7.0 | 5,049 | 12/12/2022 |
| 3.6.3 | 969 | 10/6/2022 |
| 3.6.2 | 683 | 9/18/2022 |
| 3.6.0 | 604 | 9/11/2022 |
| 3.5.5 | 4,990 | 7/6/2022 |
| 3.5.2 | 803 | 6/19/2022 |
| 3.5.1 | 629 | 6/17/2022 |
| 3.4.5 | 13,240 | 8/27/2021 |
| 3.4.3 | 993 | 3/9/2021 |
| 3.4.2 | 577 | 3/8/2021 |
| 3.4.0 | 584 | 2/12/2021 |
| 3.2.15 | 5,844 | 2/25/2020 |
| 3.2.9 | 1,898 | 6/6/2019 |
| 3.2.8 | 975 | 5/2/2019 |
| 3.2.1 | 245 | 2/10/2024 |
| 3.2.0 | 1,982 | 12/7/2018 |
| 3.0.38 | 1,289 | 9/6/2018 |
| 3.0.30 | 1,178 | 9/2/2018 |
| 3.0.29 | 1,377 | 7/23/2018 |
| 3.0.18 | 1,627 | 4/5/2018 |
| 3.0.15 | 1,351 | 2/18/2018 |
| 3.0.14 | 1,565 | 2/14/2018 |
| 3.0.12 | 1,593 | 1/28/2018 |
| 3.0.11 | 1,569 | 1/26/2018 |
| 0.1.0 | 1,369 | 10/4/2017 |