Skip to content

Add a feature to dotnet-watch to launch a browser and then auto-refresh it when changes are detected #23412

@pranavkm

Description

@pranavkm

As a start, we'd like for a way to launch a browser, once a server the server is listening. Once we have this, we can start looking at ways to refresh the current tab rather than launching a new instance. @DamianEdwards suggested looking at https://github.com/RickStrahl/Westwind.AspnetCore.LiveReload (cc @RickStrahl)'s middleware to see how that's achieved and if that's something we could incorporate in to dotnet-watch.

  • Launch a browser from dotnet-watch
  • dotnet-watch launches a WS server
  • Create the reload middleware
  • Inject the middleware in to the app using hosting startup

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-hot-reloadThis issue is related to the Hot Reload feaature

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions