forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from lytico/lytico/gtksharp/merge/dotnet_main-…
…main_linux_210713 merge dotnet/main main_linux & enhance 210713
Showing
981 changed files
with
19,681 additions
and
6,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Developer Guide | ||
|
||
This page contains steps to build and run the .NET MAUI repository from source. | ||
|
||
## Requirements | ||
|
||
- Install the SDKs listed in the [maui-samples](https://github.com/dotnet/maui-samples) repository. | ||
|
||
## Running | ||
|
||
### .NET 6 | ||
|
||
You can run a `Cake` target to bootstrap .NET 6 in `bin\dotnet` and launch Visual Studio: | ||
|
||
```dotnetcli | ||
dotnet tool restore | ||
dotnet cake --target=VS-NET6 | ||
``` | ||
_NOTES:_ | ||
- _VS Mac is not yet supported._ | ||
- _If the IDE doesn't show any Android devices try unloading and reloading the `Sample.Droid-net6` project._ | ||
|
||
You can also run commands individually: | ||
```dotnetcli | ||
# install local tools required to build (cake, pwsh, etc..) | ||
dotnet tool restore | ||
# Provision .NET 6 in bin\dotnet | ||
dotnet build src\DotNet\DotNet.csproj | ||
# Builds Maui MSBuild tasks | ||
.\bin\dotnet\dotnet build Microsoft.Maui.BuildTasks-net6.sln | ||
# Builds the rest of Maui | ||
.\bin\dotnet\dotnet build Microsoft.Maui-net6.sln | ||
# (Windows-only) to launch Visual Studio | ||
dotnet cake --target=VS-DOGFOOD | ||
``` | ||
|
||
To build & run .NET 6 sample apps, you will also need to use `.\bin\dotnet\dotnet`: | ||
```dotnetcli | ||
.\bin\dotnet\dotnet build src\Controls\samples\Controls.Sample.Droid\Maui.Controls.Sample.Droid-net6.csproj -t:Run | ||
.\bin\dotnet\dotnet build src\Controls\samples\Controls.Sample.iOS\Maui.Controls.Sample.iOS-net6.csproj -t:Run | ||
``` | ||
|
||
Try out a "single project", you will need the `-f` switch to choose the platform: | ||
|
||
```dotnetcli | ||
.\bin\dotnet\dotnet build src\Controls\samples\Controls.Sample.SingleProject\Maui.Controls.Sample.SingleProject.csproj -t:Run -f net6.0-android | ||
.\bin\dotnet\dotnet build src\Controls\samples\Controls.Sample.SingleProject\Maui.Controls.Sample.SingleProject.csproj -t:Run -f net6.0-ios | ||
``` | ||
|
||
### Blazor Desktop | ||
|
||
To build and run Blazor Desktop samples, check out the [Blazor Desktop](https://github.com/dotnet/maui/wiki/Blazor-Desktop) wiki topic. | ||
|
||
### Win UI 3 | ||
|
||
To build and run WinUI 3 support, please install the additional components mentioned on the [Getting Started](https://github.com/dotnet/maui/wiki/Getting-Started) page and run: | ||
|
||
```dotnetcli | ||
dotnet tool restore | ||
dotnet cake --target=VS-WINUI | ||
``` |
Oops, something went wrong.