All Projects → abiosoft → Devreload

abiosoft / Devreload

Licence: gpl-3.0
Auto reload for ASP.NET core development

Projects that are alternatives of or similar to Devreload

Urf.core.sample
URF.Core Sample Solution - E2E sample built with ASP.NET Core, Entity Framework Core, URF.Core, Angular, Kendo UI & OData Core. Live demo: https://goo.gl/QpJVgd
Stars: ✭ 40 (-39.39%)
Mutual labels:  asp-net-core
Boot Figreload
Boot task providing live-reload using Fighweel client
Stars: ✭ 50 (-24.24%)
Mutual labels:  livereload
Cryptohelper
Standalone password hasher for ASP.NET Core using a PBKDF2 implementation.
Stars: ✭ 58 (-12.12%)
Mutual labels:  asp-net-core
Aspnetcoreidentityserver4resourceownerpassword
ASP.NET Core IdentityServer4 Resource Owner Flow Refresh token and custom user repository
Stars: ✭ 44 (-33.33%)
Mutual labels:  asp-net-core
Opcuawebplatformunict
An ASP.NET Core web application exposing OPC UA Servers to non OPCUA-compliant clients with a REST interface
Stars: ✭ 49 (-25.76%)
Mutual labels:  asp-net-core
Opentelemetry Dotnet
The OpenTelemetry .NET Client
Stars: ✭ 1,037 (+1471.21%)
Mutual labels:  asp-net-core
Simplerpc
A simple and fast contractless RPC library for .NET and .NET Core
Stars: ✭ 39 (-40.91%)
Mutual labels:  asp-net-core
Aspnetcoreid4external
external OpenID Connect Login to IdentityServer4 with AAD
Stars: ✭ 63 (-4.55%)
Mutual labels:  asp-net-core
Ravendb.identity
RavenDB Identity provider for ASP.NET Core. Let RavenDB manage your users and logins.
Stars: ✭ 50 (-24.24%)
Mutual labels:  asp-net-core
Electron.net Musicplayer Sample
Stars: ✭ 55 (-16.67%)
Mutual labels:  asp-net-core
Vue.js With Asp.net Core Sample
This provides a sample code using vue.js running on ASP.NET Core
Stars: ✭ 44 (-33.33%)
Mutual labels:  asp-net-core
Slater Theme
Shopify Starter theme based on slate
Stars: ✭ 47 (-28.79%)
Mutual labels:  livereload
Identityserver4.openadmin
Open Source Admin UI for IdentityServer4
Stars: ✭ 54 (-18.18%)
Mutual labels:  asp-net-core
Znetcs.aspnetcore.authentication.basic
A simple basic authentication middleware.
Stars: ✭ 40 (-39.39%)
Mutual labels:  asp-net-core
Aspnetcore.services
Examples for ASP.NET Core webservices
Stars: ✭ 59 (-10.61%)
Mutual labels:  asp-net-core
Aspnetcore Tests Sample
A project to help demonstrate how to do unit, integration and acceptance tests with an web api project using ASP.NET Core and Angular 7 front end.
Stars: ✭ 40 (-39.39%)
Mutual labels:  asp-net-core
Dustedcodes
My personal website - an Open Source ASP.NET Core Blog built with Giraffe.
Stars: ✭ 50 (-24.24%)
Mutual labels:  asp-net-core
Html5 Boilerplate
A simple, fast, modern, pure html, css (and sass), js, live reload starter template
Stars: ✭ 65 (-1.52%)
Mutual labels:  livereload
Apiintegrationtestsamples
Demo project containing end-to-end, in-memory integration tests in ASP.NET Core 2.1
Stars: ✭ 62 (-6.06%)
Mutual labels:  asp-net-core
Aspnetcorenlog
ASP.NET Core NLog MS SQL Server PostgreSQL MySQL Elasticsearch
Stars: ✭ 54 (-18.18%)
Mutual labels:  asp-net-core

DevReload

Nuget

Live reload for ASP.NET core development.

Install

dotnet add package Abiosoft.DotNet.DevReload --version 0.1.4

Usage

Use the middleware. Usually in Startup.cs

using Abiosoft.DotNet.DevReload;

...
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    if (env.IsDevelopment())
    {
        app.UseDevReload();
    }
...
}

Then, add the tag helper to your main layout file.

@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Abiosoft.DotNet.DevReload

...

<environment include="Development">
    <devreload></devreload>
</environment>

And that's all. Just use dotnet watch run and your browser will auto reload.

How

DevReload monitors the ASP.NET app by long polling a REST endpoint and monitor static files with FileSystemWatcher.

Configure

You can modify the directories and file extensions for static files only.

Note that live editing of cshtml files may require Razor Runtime Compilation service.

app.UseDevReload(new DevReloadOptions
{
    Directory = ".",
    IgnoredSubDirectories = new string[] { ".git", ".node_modules" },
    StaticFileExtensions = new string[] { "cshtml", "css", "js", "html" },
});

Demonstration

demonstration

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].