Closed MattePozzy closed 1 year ago
Well, I'm not sure you need to run it just after the project build, I guess you need to run the hot reload when the project runs? I have a custom command in visual studio (using a custom context menu on the project) that runs the command on the project folder, or I'm missing anything?
Well, I'm not sure you need to run it just after the project build, I guess you need to run the hot reload when the project runs? I have a custom command in visual studio (using a custom context menu on the project) that runs the command on the project folder, or I'm missing anything?
Yes, sorry, I need to do the same thing. Could you please tell me how can I do this?
Thank you!
In Visual Studio create an external tool from Tools->External Tools like this:
Visual Studio external tools dialog
Add the command to the Solution context menu. Right-click on the toolbar and select Customize button:
Add a new command and select the correct External Command (in my case was External Command 2):
In Visual Studio create an external tool from Tools->External Tools like this:
Visual Studio external tools dialog
Add the command to the Solution context menu. Right-click on the toolbar and select Customize button:
Add a new command and select the correct External Command (in my case was External Command 2):
Thank you!
@adospace you call the External Tools item "Run MauiReactor Hot-Reload (Android)" but that command is to build and run. For hot-reload, don't you also need to run dotnet-maui-reactor -f net7.0-android
separately?
PS: I do dev on VSCode on macOS + iOS. So run two commands in two separate terminals:
dotnet build -t:Run -f net7.0-ios /p:_DeviceName=:v2:udid=***
dotnet-maui-reactor -f net7.0-ios
Yes, of course, you're right, this the correct command:
/c "wt.exe dotnet-maui-reactor -f net7.0-android -d $(ProjectDir)"
Hi, how its possible to run the command to start the hot reload just after the project is built? I need to run this command
dotnet-maui-reactor -f [net7.0-android|net7.0-ios|net7.0-maccatalyst|windows10.0.19041.0] --mode Full
when a specific platform is selected to build and run.Thank you.