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
Copy file name to clipboardExpand all lines: .github/DEVELOPMENT.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,19 @@ This page contains steps to build and run the .NET MAUI repository from source.
15
15
- Follow [these steps](https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation?view=net-maui-8.0&tabs=visual-studio-code), installing VS Code, MAUI extension, .NET8, Xcode, OpenJDK, and Android SDK
16
16
- Install Mono from [Mono Project](https://www.mono-project.com)
17
17
- For Xcode, you can install from the [App Store](https://apps.apple.com/us/app/xcode/id497799835?mt=12) or [Apple Developer portal](https://developer.apple.com/download/more/?name=Xcode)
18
+
- As of 26 March 2024, Xcode 15.3 is not yet supported. Check [this issue](https://github.com/dotnet/maui/issues/21057) for updates
19
+
- Edit your `.zprofile` file to ensure that the following environment variables are set/modified (you may need to adjust the version of OpenJDK):
- In VSCode do`command--shift-P`thentype`code path` and selectthe option `Shell Command: Install 'code'in PATH`
18
31
19
32
## Building the Build Tasks
20
33
Before opening the solution in Visual Studio / VS Code you **MUST** build the build tasks.
@@ -143,6 +156,21 @@ These are tests that will not run on a device. This is useful for testing device
143
156
│ │ ├── Essentials.UnitTests
144
157
```
145
158
159
+
### Reproducing an Issue/Debugging .NET MAUI Code
160
+
Open the .NET MAUI workspace in VSCode.
161
+
In VSCode, selectthe device that you will be testing on. Using the command palette (ctrl-shift-P/command-shift-P) type`pick device` and
162
+
you will be presented with a set of choices for your target device (Android, iOS, etc). Select one.
163
+
There is a sample project in`src/Controls/samples/Controls.Sample.Sandbox`. This is an empty project
164
+
into which you can add your code to reproduce an issue and also set breakpoints in .NET MAUI source code.
165
+
Let VSCode know this is the project you want to selectby going to the command palette (ctrl-shift-P/command-shift-P)
166
+
and typing `pick startup` and select".NET MAUI: Pick Startup Project" and select the Sandbox project.
167
+
168
+
Before using the command palette for the first time, you may have to wait a minute
169
+
for intellisense and other tasks to complete before using the command palette. If the project hasn't
170
+
'settled' yet, you will see an error "Pick Startup Project has resulted in an error."
171
+
172
+
*Note:* When you are committing your PR, do not include your changes to the Sandbox project.
173
+
146
174
### Integration Tests
147
175
148
176
The Integration test project under `src/TestUtils/src/Microsoft.Maui.IntegrationTests` contains tests which build and/or run MAUI templates or other projects.
0 commit comments