![]() ![]() Note *without* typing run after (Just incase you used to use “dotnet watch run”). Simple run the following from your project directory : dotnet watch Hot Reload from a terminal or command line is just as easy. ![]() On larger projects I’ve found this to maybe be a little bit more pesky (If Hot Reload is having issues, having popups firing off every save is a bit annoying), but on smaller projects I’ve basically run this without a hitch everytime. If you’re coming from a front end development background you’ll be used to file watchers recompiling your applications based on a save only. If that’s a little too labour intensive for you, there is even an option to Hot Reload on file save. atleast that’s what it looks like to me) is Hot Reload. That little icon with two fishes swimming after each other (Or. Thus I’m going to show off Visual Studio 2022 instead!Īll we need to do is edit our application while it’s running, then look to our nice little task bar in Visual Studio for the following icon : Visual Studio 2019 *does* have a hot reload functionality, but it’s less featured (Atleast for me). It’s hard for me to not stop the application completely and restart just to be sure! Hot Reload In Visual Studio 2022 If I’m fixing a bug, and I do a reload and the bug still exists…. ![]() It’s very hard to “feel” like your changes have been applied. Honestly, one of the biggest things to get used to is the mentality of Hot Reload actually doing something. I’ve also at times had the Hot Reload fail with various errors, usually meaning I just restart and we are away again. Notably that if you edit your application startup (Or other run-once type code), your application will hot reload, it doesn’t re-run any code blocks, meaning you’ll need to restart your application to get that startup ran again. It (should) work with Web Apps, Blazor, WPF applications, really anything you can think of. That’s the power of Hot Reload!Īnd it isn’t just limited to Console Applications. I can change the Console.WriteLine text, and immediately see the results of my change *without* restarting my application. But in short, I have a console application that is inside a never ending loop. In case it’s too small, you can click to make it bigger. You’ll just have to give it a crack and try it out yourself. It’s actually a really simple feature so this isn’t going to be too long. The amount of frustrating times I’ve had to restart my entire application because of one small typo… whereas now it’s Hot Reload to the rescue! I legitimately feel this is actually one of the best things to be released with. Now that the flames have simmered down on the Hot Reload Debacle, maybe it’s time again to revisit this feature! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |