Question: hot reload only works with assets in Visual Studio 2019, when I modify an #SVG or #CSS File hot reload kicks in but when I make any changes to the C-Sharp File hot-reload does not work.
Login to See the Rest of the Answer
Answer: #Hot-Reload works best when you are using Visual Studio to Debug (to run your application) this way Hot-Reload is within the Scope of the #State of the Application. According to my experience, however, when you use the #Console to run Asp.Net Core 6 or 7 #Application the Hot-Reload sometimes does not work.
Here are a couple of things to try to diagnose the Hot-Reload not working in Development:
dotnet watch run --ASPNETCORE_ENVIRONMENT=Development?