Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Changes to js file not picked up for Blazor server app

$
0
0

I just noticed a strange behavior in Visual Studio 22 ver 17.11.5.

If I add a function to .js file, add a call to the function on a razor page and hit F5, I get an exception that the method cannot be found. This used to work just fine.

If I hit F12 and check the js file, it sure enough does not contain the newly added function.

If I add a new .js file and add it to _Layout.cshtml it works for a little bit. That is, I can add new functions and they are picked up, but at some random point, changes to this new file also stops being picked up.

Anyone else seeing this?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>