RickStrahl / Westwind.AspnetCore.LiveReload

ASP.NET Core Live Reload Middleware that monitors file changes in your project and automatically reloads the browser's active page
Other
473 stars 42 forks source link

Page reloads without change on Ubuntu #37

Closed vladtreny closed 4 years ago

vladtreny commented 4 years ago

Hello,

Thank you for this extension.

I run it on Ubuntu, for example, with that dotnet watch run debug --environment "Development"

And the page reloads without any change in code.

asp.net 3.1 Ubuntu 19.10

      services.AddLiveReload(config =>
        {
            // optional - use config instead
            config.LiveReloadEnabled = true;
            config.ClientFileExtensions = ".cs";
            config.FolderToMonitor = Environment.ContentRootPath;
        });
RickStrahl commented 4 years ago

Which page? The way you have this configured it also looks like it will never trigger at all because .cs is not a client extension? If you want to restart on .cs files in your server side application you can just use dotnet-watch - you don't need this component for that.

Also not that .NET 5 Preview 8 and later has some built-in functionality similar based on this component. It's possible that there's overlap between the two and that might be causing the problem.