Reputation: 4062
I've seen a bunch of tutorials on Youtube where they just run a ASP.NET template project, and the hot reload button shows up next to the 'Start Without Debugging' button on the top panel. I do not know why this is not happening for me, the button is just not there. I installed VS 2022 just recently (in mid-July 2022) and the project is using .NET 6. What should I do?
Upvotes: 2
Views: 1197
Reputation: 9027
As you mentioned in the comments, F# does not support Hot Reloading according to the documentation (I am guessing you are working in an F# project by the sounds of it). Here are the unsupported scenarios:
- Xamarin.Forms apps won’t support .NET Hot Reload in iOS and Android scenarios. You get partial support for Hot Reload when targeting a UWP app. This is by design, and we don’t expect to make any further improvements. (Note: XAML Hot Reload will continue to be available and supported for Xamarin.Forms customers on the latest SDK.)
- .NET MAUI apps are not supported prior to Visual Studio 2022 version 17.1 Preview 1. Starting in 17.1 Preview 1, .NET MAUI is supported, but only with the debugger attached.
- Apps built using F# or those targeting .NET Native do not support Hot Reload.
Aside from that, if you still don't see the icon, check your toolbar settings.
Upvotes: 1