Boxed.AspNetCore
8.1.1
Prefix Reserved
This package has a SemVer 2.0.0 package version: 8.1.1+build.666.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Boxed.AspNetCore --version 8.1.1
NuGet\Install-Package Boxed.AspNetCore -Version 8.1.1
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="Boxed.AspNetCore" Version="8.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Boxed.AspNetCore --version 8.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Boxed.AspNetCore, 8.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Boxed.AspNetCore as a Cake Addin #addin nuget:?package=Boxed.AspNetCore&version=8.1.1 // Install Boxed.AspNetCore as a Cake Tool #tool nuget:?package=Boxed.AspNetCore&version=8.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Boxed.AspNetCore
Provides ASP.NET Core middleware, MVC filters, extension methods and helper code for an ASP.NET Core project.
Fluent Interface Extensions
ILoggingBuilder Extensions
loggingBuilder
.AddIfElse(
hostingEnvironment.IsDevelopment(),
x => x.AddConsole(...).AddDebug(),
x => x.AddSerilog(...));
IConfiguration Extensions
this.configuration = new ConfigurationBuilder()
.SetBasePath(hostingEnvironment.ContentRootPath)
.AddJsonFile("config.json")
.AddJsonFile($"config.{hostingEnvironment.EnvironmentName}.json", optional: true)
.AddIf(
hostingEnvironment.IsDevelopment(),
x => x.AddUserSecrets())
.AddEnvironmentVariables()
.AddApplicationInsightsSettings(developerMode: !hostingEnvironment.IsProduction())
.Build();
IApplicationBuilder Extensions
application
.UseIfElse(
environment.IsDevelopment(),
x => x.UseDeveloperExceptionPage(),
x => x.UseStatusCodePagesWithReExecute("/error/{0}/"))
.UseIf(
environment.IsStaging(),
x => x.UseStagingSpecificMiddleware())
.UseStaticFiles()
.UseMvc();
SEO Friendly URL's
[HttpGet("product/{id}/{title}", Name = "GetProduct")]
public IActionResult GetProduct(int id, string title)
{
var product = this.productRepository.Find(id);
if (product == null)
{
return this.NotFound();
}
// Get the actual friendly version of the title.
string friendlyTitle = FriendlyUrlHelper.GetFriendlyTitle(product.Title);
// Compare the title with the friendly title.
if (!string.Equals(friendlyTitle, title, StringComparison.Ordinal))
{
// If the title is null, empty or does not match the friendly title, return a 301 Permanent
// Redirect to the correct friendly URL.
return this.RedirectToRoutePermanent("GetProduct", new { id = id, title = friendlyTitle });
}
// The URL the client has browsed to is correct, show them the view containing the product.
return this.View(product);
}
Canonical URL's
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Boxed.AspNetCore:
Package | Downloads |
---|---|
Boxed.AspNetCore.Swagger
Provides ASP.NET Core middleware, MVC filters, extension methods and helper code for an ASP.NET Core project implementing Swagger (OpenAPI). |
|
HMRC.ESFA.Levy.Api.Types
Returns apprenticeship levy information from HMRC |
|
WebScheduler.Client.Http
The API for the Web Scheduler |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Boxed.AspNetCore:
Repository | Stars |
---|---|
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
|
Version | Downloads | Last updated |
---|---|---|
9.0.1 | 65,928 | 9/14/2023 |
9.0.0 | 248 | 9/14/2023 |
8.1.2 | 249,024 | 8/24/2022 |
8.1.1 | 426 | 8/24/2022 |
8.1.0 | 328 | 8/24/2022 |
8.0.0 | 196,036 | 11/9/2021 |
7.0.0 | 63,262 | 4/29/2021 |
6.2.0 | 11,139 | 4/1/2021 |
6.1.1 | 3,481 | 3/12/2021 |
6.1.0 | 1,571 | 3/11/2021 |
6.0.0 | 23,277 | 11/23/2020 |
5.1.2 | 182,407 | 6/1/2020 |
5.1.2-preview.0.44 | 430 | 4/3/2020 |
5.1.1 | 102,153 | 12/11/2019 |
5.1.0 | 1,364 | 12/9/2019 |
5.0.0 | 2,278 | 11/30/2019 |
4.0.0 | 24,797 | 9/3/2019 |
4.0.0-beta-0000 | 1,828 | 9/3/2019 |
3.3.0 | 25,635 | 7/14/2019 |
3.2.0 | 36,593 | 2/13/2019 |
3.1.0 | 6,396 | 12/31/2018 |
3.0.0 | 4,360 | 12/27/2018 |
2.2.2 | 7,569 | 10/22/2018 |
2.2.1 | 1,687 | 10/19/2018 |
2.2.0 | 2,097 | 10/17/2018 |
2.1.0 | 38,595 | 7/13/2018 |
2.0.0 | 5,950 | 6/6/2018 |
1.1.0 | 2,839 | 5/25/2018 |
1.0.0 | 4,606 | 5/6/2018 |