You have a few options here.
If you don’t want to take a dependency on Umbraco.Cms.DevelopmentMode.Backoffice at all then:
If you’re using Visual Studio, you can use Hot Reload, if you check “Hot Reload on File Save” you’ll get the behaviour you’re expecting.
Also you can use dotnet watch
Then when a file changes:
Finally, if you want to stick with Umbraco.Cms.DevelopmentMode.Backoffice you can load it conditionally, e.g.
<PackageReference Include="Umbraco.Cms.DevelopmentMode.Backoffice" Version="17.1.0" Condition="'$(Configuration)' == 'Debug'" />


![dotnet watch ⌚ File updated: .iewsoctypeWithATemplate.cshtml dotnet watch 🔥 [MyProject (net10.0)] Hot reload succeeded.](https://forum.umbraco.com/uploads/default/original/2X/b/b16deac9ee3d8dae3692cc9868eaf1294b050d01.png)