Description
When running an Android app via dotnet run targeting an emulator and pressing Ctrl+C to stop, the app is not properly closed on the device. Instead, you get:
Stopping application...
Error: The operation was canceled.
Steps to Reproduce
- Start an Android emulator
- Run:
dotnet run -f net11.0-android --device emulator-5554
- Wait for the app to deploy and launch
- Press Ctrl+C in the terminal
Expected Behavior
The app should be stopped on the device/emulator and dotnet run should exit cleanly.
Actual Behavior
The terminal outputs:
Stopping application...
Error: The operation was canceled.
The app is not closed on the emulator.
Environment
- .NET 11 Preview 4 (
dotnet-sdk-11.0.100-preview.4)
- Terminal: VS Code integrated terminal
- OS: Windows
Description
When running an Android app via
dotnet runtargeting an emulator and pressing Ctrl+C to stop, the app is not properly closed on the device. Instead, you get:Steps to Reproduce
Expected Behavior
The app should be stopped on the device/emulator and
dotnet runshould exit cleanly.Actual Behavior
The terminal outputs:
The app is not closed on the emulator.
Environment
dotnet-sdk-11.0.100-preview.4)