ASP.NET MVC Boilerplate Framework alternatives and similar packages
Based on the "Application Frameworks" category.
Alternatively, view ASP.NET MVC Boilerplate Framework alternatives based on common mentions on social networks and blogs.
-
CoreFX
The corefx repo contains the library implementation (called "CoreFX") for .NET Core. It includes System.Collections, System.IO, System.Xml and many other components. It builds and runs on Windows. You can 'watch' the repo to see Linux and Mac support being added over the next few months. -
ASP.NET Boilerplate
A starting point for new modern ASP.NET MVC web applications with best practices and most popular tools. -
Orleans
Orleans is a framework that provides a straight-forward approach to building distributed high-scale computing applications, without the need to learn and apply complex concurrency or other scaling patterns -
ABP
The next generation of the ASP.NET Boilerplate web application framework. -
Introducing .NET Multi-platform App UI (MAUI)
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop. -
DotNetty
DotNetty is a port of Netty, asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. -
Uno Platform
Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. -
AspectCore Framework
AspectCore Framework is an Aspect-Oriented Programming based cross platform framework for .NET Core and .NET Framework. Core support for aspect-interceptor,dependency injection integration , web applications , data validation , and more. -
Kentor Authentication Services
Saml2 Authentication services for ASP.NET -
CSLA .NET
business layer development framework http://cslanet.com/ -
Microdot Framework
Microdot: An open source .NET microservices framework -
Spring.Net
Spring.NET is an open source application framework that makes building enterprise .NET applications easier -
X.PagedList
Nugget for easily paging through any IEnumerable/IQueryable in Asp.Net MVC -
Fusion
Make your ASP.NET Core services 10x ... 1000x faster and unleash the power of real-time UI updates with Fusion's change tracking abstractions. -
peasy
Peasy is a middle tier framework that offers an easy to use and flexible rules engine and was designed to address common challenges such as concurrency handling, transactional support, fault tolerance, threading, scalability, async and multiple client support, and easy testability, all without a huge learning curve! -
rxweb
Tons of extensively featured packages for Angular, VUE and React Projects -
Mono-Addins
Mono.Addins is a generic framework for creating extensible applications, and for creating add-ins which extend those applications -
Newbe.Claptrap
This is a set of server-side development frameworks with reactive, event sourcing and Actor pattern as basic theories. On top of this, developers can develop "distributed", "scale out", and "easy to test" application more simply. -
DWKit
Business processes, Workflow and Forms in a self-hosted or cloud .NET Core solution. -
Database scaffolding platform
Database scaffolding tool -
HopFramework
HopFramework is a framework to create projects easily applying Domain Driven Design and a lot of patterns to delivery a better solution. -
PersianDataAnnotations
PersianDataAnnotations is ASP.NET Core MVC & ASP.NET MVC Custom Localization DataAnnotations (Localized MVC Errors) for Persian(Farsi) language -
Simplify.Web
Simplify.Web is a lightweight and fast server-side .NET web-framework based on MVC and OWIN for building HTTP based web-applications, RESTful APIs etc. -
MVCExtensibleRoleManagement
ASP.NET MVC Role-Based Security Example -
Ether.Network
Ether.Network is an open source networking library that allow developers to create simple, fast and scalable socket server or client applications over the TCP/IP protocol.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of ASP.NET MVC Boilerplate Framework or a related project?
README
.NET Core Extensions and Helper NuGet packages. If you are looking for the .NET Boxed project templates, you can find them here.
Boxed.Mapping
A simple and fast (fastest?) object to object mapper that does not use reflection. Read A Simple and Fast Object Mapper for more information.
public class MapFrom
{
public bool BooleanFrom { get; set; }
public int IntegerFrom { get; set; }
public List<MapFromChild> ChildrenFrom { get; set; }
}
public class MapFromChild
{
public DateTimeOffset DateTimeOffsetFrom { get; set; }
public string StringFrom { get; set; }
}
public class MapTo
{
public bool BooleanTo { get; set; }
public int IntegerTo { get; set; }
public List<MapToChild> ChildrenTo { get; set; }
}
public class MapToChild
{
public DateTimeOffset DateTimeOffsetTo { get; set; }
public string StringTo { get; set; }
}
public class DemoMapper : IMapper<MapFrom, MapTo>
{
private readonly IMapper<MapFromChild, MapToChild> childMapper;
public DemoMapper(IMapper<MapFromChild, MapToChild> childMapper) => this.childMapper = childMapper;
public void Map(MapFrom source, MapTo destination)
{
destination.BooleanTo = source.BooleanFrom;
destination.IntegerTo = source.IntegerFrom;
destination.ChildrenTo = childMapper.MapList(source.ChildrenFrom);
}
}
public class DemoChildMapper : IMapper<MapFromChild, MapToChild>
{
public void Map(MapFromChild source, MapToChild destination)
{
destination.DateTimeOffsetTo = source.DateTimeOffsetFrom;
destination.StringTo = source.StringFrom;
}
}
public class UsageExample
{
private readonly IMapper<MapFrom, MapTo> mapper = new DemoMapper();
public MapTo MapOneObject(MapFrom source) => this.mapper.Map(source);
public MapTo[] MapArray(List<MapFrom> source) => this.mapper.MapArray(source);
public List<MapTo> MapList(List<MapFrom> source) => this.mapper.MapList(source);
public IAsyncEnumerable<MapTo> MapAsyncEnumerable(IAsyncEnumerable<MapFrom> source) =>
this.mapper.MapEnumerableAsync(source);
}
Also includes IImmutableMapper<TSource, TDestination>
which is for mapping to immutable types like C# 9 record
's and can also be used for enum
types.
public record MapFrom(bool BooleanFrom, int IntegerFrom);
public record MapTo(bool BooleanTo, int IntegerTo);
public class DemoImmutableMapper : IImmutableMapper<MapFrom, MapTo>
{
public MapTo Map(MapFrom source) =>
new MapTo(source.BooleanFrom, source.IntegerFrom);
}
Boxed.AspNetCore
Provides ASP.NET Core middleware, MVC filters, extension methods and helper code for an ASP.NET Core project.
Fluent Interface Extensions
ILoggerFactory Extensions
loggerfactory
.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
Boxed.AspNetCore.Swagger
Provides ASP.NET Core middleware, MVC filters, extension methods and helper code for an ASP.NET Core project implementing Swagger (OpenAPI).
Boxed.AspNetCore.TagHelpers
ASP.NET Core tag helpers for Subresource Integrity (SRI), Referrer meta tags, OpenGraph (Facebook) and Twitter social network meta tags. Read more at:
Subresource Integrity (SRI)
- Subresource Integrity (SRI) TagHelper using ASP.NET Core - Part 1
- Subresource Integrity (SRI) TagHelper using ASP.NET Core - Part 2
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"
asp-subresource-integrity-src="~/js/jquery.min.js"></script>
Social Network Meta Tags
Twitter Cards
<twitter-card-summary-large-image username="@@RehanSaeedUK">
Open Graph (Facebook)
<open-graph-website site-name="My Website"
title="Page Title"
main-image="@(new OpenGraphImage(
Url.AbsoluteContent("~/img/1200x630.png"),
ContentType.Png,
1200,
630))"
determiner="OpenGraphDeterminer.Blank">
Boxed.DotnetNewTest
A unit test framework for project templates built using dotnet new.
- Install dotnet new based project templates from a directory.
- Run
dotnet restore
,dotnet build
anddotnet publish
commands. - For ASP.NET Core project templates you can run
dotnet run
which gives you aHttpClient
that you can use to call the app and run further tests.
public class ApiTemplateTest
{
public ApiTemplateTest() => DotnetNew.Install<ApiTemplateTest>("ApiTemplate.sln").Wait();
[Theory]
[InlineData("StatusEndpointOn", "status-endpoint=true")]
[InlineData("StatusEndpointOff", "status-endpoint=false")]
public async Task RestoreAndBuild_CustomArguments_IsSuccessful(string name, params string[] arguments)
{
using (var tempDirectory = TempDirectory.NewTempDirectory())
{
var dictionary = arguments
.Select(x => x.Split('=', StringSplitOptions.RemoveEmptyEntries))
.ToDictionary(x => x.First(), x => x.Last());
var project = await tempDirectory.DotnetNew("api", name, dictionary);
await project.DotnetRestore();
await project.DotnetBuild();
}
}
[Fact]
public async Task Run_DefaultArguments_IsSuccessful()
{
using (var tempDirectory = TempDirectory.NewTempDirectory())
{
var project = await tempDirectory.DotnetNew("api", "DefaultArguments");
await project.DotnetRestore();
await project.DotnetBuild();
await project.DotnetRun(
@"Source\DefaultArguments",
async (httpClient, httpsClient) =>
{
var httpResponse = await httpsClient.GetAsync("status");
Assert.Equal(HttpStatusCode.OK, httpResponse.StatusCode);
});
}
}
}
Continuous Integration
Name | Operating System | Status | History |
---|---|---|---|
Azure Pipelines | Ubuntu | ||
Azure Pipelines | Mac | ||
Azure Pipelines | Windows | ||
Azure Pipelines | Overall | ||
GitHub Actions | Ubuntu, Mac & Windows | ||
AppVeyor | Ubuntu & Windows |
Contributions and Thanks
Please view the [contributing guide](/.github/CONTRIBUTING.md) for more information.
- VictorioBerra - Helping to create the
Boxed.DotnetNewTest
NuGet package.