You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that app is not deployed to device/emulator if custom launch configuration is selected and more that one emulator/device is running. There is error in terminal:
[...]
[73/73] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.so
[73/73] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.so
[73/73] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.so
[BT : 1.8.1] error : More than one device connected, please provide --device-id. [/Users/<username>/Projects/TestMaui/TestMaui.csproj::TargetFramework=net7.0-android]
Build FAILED.
[BT : 1.8.1] error : More than one device connected, please provide --device-id. [/Users/<username>/Projects/TestMaui/TestMaui.csproj::TargetFramework=net7.0-android]
0 Warning(s)
1 Error(s)
Time Elapsed 00:03:00.18
* The terminal process "/bin/bash '-l', '-c', 'dotnet build -t:Run -p:Configuration=Release -f net7.0-android -p:AndroidSdkDirectory='/private/var/<username>/Library/Android/sdk' -p:JavaSdkDirectory='/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home' /Users/<username>/Projects/TestMaui/TestMaui.csproj'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
For Debug configuration following command is run in terminal: * Executing task: dotnet build -t:Run -p:Configuration=Debug -f net7.0-android -p:AdbTarget=-s%20__SERIAL__ -p:AndroidAttachDebugger=true -p:AndroidSdbTargetPort=52096 -p:AndroidSdbHostPort=52096 -p:AndroidSdkDirectory='/private/var/<username>/Library/Android/sdk' -p:JavaSdkDirectory='/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home' /Users/<username>/Projects/TestMaui/TestMaui.csproj
For Release configuration following command is run in terminal: * Executing task: dotnet build -t:Run -p:Configuration=Release -f net7.0-android -p:AndroidSdkDirectory='/private/var/<username>/Library/Android/sdk' -p:JavaSdkDirectory='/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home' /Users/<username>/Projects/TestMaui/TestMaui.csproj
Steps To Reproduce
Prerequisites
Launch two emulators
Create folder TestMaui
Open folder in Terminal
Create new .NET MAUI project running command: 'dotnet new maui'
Open project in Visual Studio Code. Below you can see csproj:
Hi @luwed, this issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
There's a fix available for this issue that will be published in the next VS Code MAUI pre-release version. We'll proceed to close this issue once that version is available to install.
Describe the Issue
I noticed that app is not deployed to device/emulator if custom launch configuration is selected and more that one emulator/device is running. There is error in terminal:
* Executing task: dotnet build -t:Run -p:Configuration=Debug -f net7.0-android -p:AdbTarget=-s%20__SERIAL__ -p:AndroidAttachDebugger=true -p:AndroidSdbTargetPort=52096 -p:AndroidSdbHostPort=52096 -p:AndroidSdkDirectory='/private/var/<username>/Library/Android/sdk' -p:JavaSdkDirectory='/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home' /Users/<username>/Projects/TestMaui/TestMaui.csproj
* Executing task: dotnet build -t:Run -p:Configuration=Release -f net7.0-android -p:AndroidSdkDirectory='/private/var/<username>/Library/Android/sdk' -p:JavaSdkDirectory='/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home' /Users/<username>/Projects/TestMaui/TestMaui.csproj
Steps To Reproduce
Prerequisites
Expected Behavior
App is deployed to proper device/emulator.
Environment Information
The text was updated successfully, but these errors were encountered: