-1

Im using hangfire jobs to download files to project's wwwroot folder. When job starts, the project refreshing the page which i am in.

I tried the downloading file to Project Content Path then i can't access the files.

Any suggestions?

mason
  • 31,774
  • 10
  • 77
  • 121

1 Answers1

0

The VS studio enable hotreload by default.

Microsoft.WebTools.BrowserLink.Net.BrowserLinkMiddleware is injected if options>Projects & Solutions>ASP.NET core>CSS Hot Reload is enabled.

This feature will monitor wwwroot folder files changed, it will refresh the pages.

To dsiable this feature, you could modify your VS launch settings to add below:

"hotReloadEnabled" : false

Then it will not refresh the page.

Brando Zhang
  • 22,586
  • 6
  • 37
  • 65