[dotnet] Add DeployToDevice MSBuild target for 'dotnet run' support#25977
[dotnet] Add DeployToDevice MSBuild target for 'dotnet run' support#25977rolfbjarne wants to merge 1 commit into
Conversation
Implement the DeployToDevice target as specified in the dotnet run for MAUI spec. This target deploys an already-built app to a device or simulator without rebuilding, enabling the 'dotnet run --no-build' workflow. The target: - Reuses existing GetMlaunchArguments task to compute install arguments - Supports both physical devices (--installdev) and simulators (--installsim) - Accepts the $(Device) property for device selection - Depends on ComputeAvailableDevices for device discovery - Only applies to mobile platforms (iOS/tvOS) via SdkIsMobile condition Fixes #24382 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🔥 [CI Build #08967aa] Test results 🔥Test results❌ Tests failed on VSTS: test results 0 tests crashed, 1 tests failed, 198 tests passed. Failures❌ Tests on macOS Tahoe (26) tests1 tests failed, 4 tests passed.Failed tests
Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Implement the
DeployToDevicetarget as specified in the dotnet run for MAUI spec. This target deploys an already-built app to a device or simulator without rebuilding, enabling thedotnet run --no-buildworkflow.The target:
GetMlaunchArgumentstask to compute install arguments--installdev) and simulators (--installsim)$(Device)property for device selectionComputeAvailableDevicesfor device discoverySdkIsMobileconditionFixes #24382
🤖 Pull request created by Copilot