'dotnet watch' doesn't work when there are multiple target devices
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
Running `dotnet watch` on a project that needs to specify a device to run on doesn't work.
### To Reproduce
```
$ dotnet new ios
$ dotnet watch
[...]
Unable to run this project because multiple devices are available. Please specify which device to use by passing the --device argument with one of the following values:
[...]
```
Complete output: https://gist.github.com/rolfbjarne/90e037c1b92da3df37e0c894953d334d
Passing `--interactive` doesn't work, it presents the device selection UI, but it's not possible to navigate it (using up/down arrows, enter to choose, etc)
This is what shows up: https://gist.github.com/rolfbjarne/34289a79e2dc5fa748c30e72490ed763, which looks good, but as mentioned, it doesn't accept input, so I can't choose any device (or do anything other than ctrl-c it seems).
Passing `--device ` seems to work though.
### Further technical details
```
$ dotnet --version
10.0.300-preview.0.26166.109
```
details of dotnet --info
```
$ dotnet --info
.NET SDK:
Version: 10.0.300-preview.0.26166.109
Commit: e116d98b20
Workload version: 10.0.300-manifests.e3b0c442
MSBuild version: 18.6.0-preview-26166-109+e116d98b2
Runtime Environment:
OS Name: Mac OS X
OS Version: 26.3
OS Platform: Darwin
RID: osx-arm64
Base Path: /Users/rolf/work/dotnet/macios/whatever/macios/builds/downloads/dotnet-sdk-10.0.300-preview.0.26166.109/sdk/10.0.300-preview.0.26166.109/
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 10.0.3
Architecture: arm64
Commit: c2435c3e0f
.NET SDKs installed:
8.0.416 [/usr/local/share/dotnet/sdk]
9.0.308 [/usr/local/share/dotnet/sdk]
9.0.311 [/usr/local/share/dotnet/sdk]
10.0.100 [/usr/local/share/dotnet/sdk]
10.0.101 [/usr/local/share/dotnet/sdk]
10.0.103 [/usr/local/share/dotnet/sdk]
10.0.300-preview.0.26166.109 [/Users/rolf/work/dotnet/macios/whatever/macios/builds/downloads/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.22 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.22 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
x64 [/usr/local/share/dotnet/x64]
registered at [/etc/dotnet/install_location_x64]
Environment variables:
DOTNET_CLI_TELEMETRY_OPTOUT [1]
global.json file:
/Users/rolf/work/dotnet/macios/whatever/macios/global.json
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.