Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/building-apps/build-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,7 @@ See [BuildIpa](#buildipa) for iOS and tvOS projects.

## Device

Specifies which mobile device or emulator to target when using `dotnet run
--device <Device>` or MSBuild targets that interact with devices (such as
`Run`, `Install`, or `Uninstall`).
Specifies which mobile device or simulator to target when using `dotnet run --device <Device>` or MSBuild targets that interact with devices (such as `Run`, `Install`, or `Uninstall`).

The value can be anything the command-line tools `simctl` or `devicectl`
accept for the device name; this is typically either the UDID or the name of
Expand Down
4 changes: 2 additions & 2 deletions docs/building-apps/build-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Added in .NET 11.
## Run

Builds the source code within a project and all dependencies, and then deploys and runs it
on a default simulator/device. A specific deployment target can be set by using the `$(Device)` property.
on a default simulator/device. A specific deployment target can be set by using the `$(Device)` property.

```dotnetcli
dotnet build -t:Run project.csproj -p:Device=$(MY_DEVICE_UDID)
dotnet build -t:Run project.csproj -p:Device=<udid>
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the command example, using <udid> as a placeholder is problematic because <...> has shell meaning (input redirection) and copy/paste will fail. Prefer a safe placeholder (for example UDID, $UDID, or a concrete example value like 00001111-012301230123ABCD).

Suggested change
dotnet build -t:Run project.csproj -p:Device=<udid>
dotnet build -t:Run project.csproj -p:Device=UDID

Copilot uses AI. Check for mistakes.
```
Loading