This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Setup Maui.sln with a set of net6 projects #13433
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
d39199e
net6 projects
PureWeen e9272d7
- additional
PureWeen f9cd373
- net6 nullable fixes
PureWeen 60c60cd
- provision sdks
PureWeen a914ea6
- net6.0
PureWeen c1d3017
- change to 5.0.0
PureWeen 61105aa
- update cake provisioning
PureWeen 2ee51b7
- net6 fixes
PureWeen 111e501
- fix up platform heads
PureWeen c428892
- fix global.json
PureWeen b4d679d
- add net6 nuget feeds
PureWeen 35d909c
- fix up platform heads and net6 if defs
PureWeen 0b00b2c
- simplify
PureWeen 1fe92ce
- add dotnet core build of maui sln
PureWeen caea497
- update readme
PureWeen 75fd857
- net6 yaml target
PureWeen 9eb6007
- remove net6 build from nuget
PureWeen 1a84596
- simplify provisioning
PureWeen 905ef62
- write json file
PureWeen 6319bda
- net6 via yaml
PureWeen 2ec2520
- fix parameters
PureWeen e43d68a
- more boots
PureWeen 391b707
- yaml
PureWeen 3c76d75
- base yaml pipeline off net6-samples
PureWeen 5f2cfee
- yaml yaml yaml
PureWeen b67949b
- mac yaml
PureWeen 0917e6a
- add binlogs
PureWeen ac5e63e
- set AndroidRestoreOnBuild to false
PureWeen d46d687
- browser assembly
PureWeen 3598819
- fix artifacts directories
PureWeen b31b66f
- fix NET6 artifacts
PureWeen 90e479a
- update to preview bits
PureWeen db030e9
Update handlers.yml
PureWeen 34add85
[Build]Deploy android sample app
rmarinho e9f81f9
- restore from devops config
PureWeen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<Project> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS')) != true "> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS')) != true AND $(TargetFramework.StartsWith('net6.0-ios')) != true "> | ||
<Compile Remove="**\*.iOS.cs" /> | ||
<None Include="**\*.iOS.cs" /> | ||
<Compile Remove="**\iOS\*.cs" /> | ||
|
@@ -11,13 +11,13 @@ | |
<Compile Remove="**\Mac\*.cs" /> | ||
<None Include="**\Mac\*.cs" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac')) != true And $(TargetFramework.StartsWith('Xamarin.iOS')) != true "> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac')) != true AND $(TargetFramework.StartsWith('Xamarin.iOS')) != true AND $(TargetFramework.StartsWith('net6.0-ios')) != true "> | ||
<Compile Remove="**\*.MaciOS.cs" /> | ||
<None Include="**\*.MaciOS.cs" /> | ||
<Compile Remove="**\MaciOS\*.cs" /> | ||
<None Include="**\MaciOS\*.cs" /> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) != true "> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) != true AND $(TargetFramework.StartsWith('net6.0-android')) != true "> | ||
<Compile Remove="**\*.Android.cs" /> | ||
<None Include="**\*.Android.cs" /> | ||
<Compile Remove="**\Android\*.cs" /> | ||
|
@@ -40,16 +40,36 @@ | |
<None Include="**\Win32\*.cs" /> | ||
</ItemGroup> | ||
|
||
|
||
<!-- Android --> | ||
<PropertyGroup Condition="$(TargetFramework.StartsWith('net6.0-android'))"> | ||
<DefineConstants>$(DefineConstants);MONOANDROID</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<!-- iOS --> | ||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0-ios' "> | ||
<DefineConstants>$(DefineConstants);IOS</DefineConstants> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be defined by default in .NET 6. Is it not? |
||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="$(TargetFramework.StartsWith('netcoreapp')) == true "> | ||
<UseWpf>true</UseWpf> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'"> | ||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
<!-- If this becomes part of the product we will remove these but for now it's useful having them all in one place --> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) == true "> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) == true OR '$(TargetPlatformIdentifier)' == 'android' OR '$(TargetFramework)' == 'net6.0-android'"> | ||
<PackageReference Include="Xamarin.AndroidX.Lifecycle.LiveData" Version="2.2.0.4" /> | ||
<PackageReference Include="Xamarin.Google.Android.Material" Version="1.2.1.1" /> | ||
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.V4" Version="1.0.0.6" /> | ||
</ItemGroup> | ||
</Project> | ||
<PropertyGroup Condition="$(TargetFramework.StartsWith('net5.0-windows')) == true"> | ||
<TargetPlatformMinVersion>10.0.17134.0</TargetPlatformMinVersion> | ||
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers> | ||
<DefineConstants>$(DefineConstants);DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;UWP_16299;UWP_18362;UWP_17134</DefineConstants> | ||
<NoWarn>$(NoWarn);NU5104</NoWarn> | ||
</PropertyGroup> | ||
<ItemGroup Condition="$(TargetFramework.StartsWith('net5.0-windows')) == true"> | ||
<PackageReference Include="Microsoft.WinUI" Version="3.0.0-preview3.201113.0" /> | ||
</ItemGroup> | ||
</Project> |
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,56 @@ | ||
| ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.30926.220 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Xamarin.Platform.Handlers-net6", "src\Platform.Handlers\src\Xamarin.Platform.Handlers\Xamarin.Platform.Handlers-net6.csproj", "{95BA42B5-B00E-4986-B9B5-517140378452}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample-net6", "src\Platform.Handlers\samples\Sample\Sample-net6.csproj", "{31D405F0-723E-4A6C-A52B-F4CB19A8D845}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Files", "Files", "{449F6071-A74F-4309-8D7B-7038CFD1B17B}" | ||
ProjectSection(SolutionItems) = preProject | ||
README.md = README.md | ||
.nuspec\Xamarin.Forms.MultiTargeting.targets = .nuspec\Xamarin.Forms.MultiTargeting.targets | ||
EndProjectSection | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Xamarin.Forms.Core-net6", "src\Forms\src\Xamarin.Forms.Core\Xamarin.Forms.Core-net6.csproj", "{AF64451F-E2BD-41C2-B083-F60C26AE2A9F}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.Droid-net6", "src\Platform.Handlers\samples\Sample.Droid\Sample.Droid-net6.csproj", "{3AE5B968-1916-4213-97E4-F88F51BCAB23}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.iOS-net6", "src\Platform.Handlers\samples\Sample.iOS\Sample.iOS-net6.csproj", "{B8D80A2B-F636-4E27-BCAA-EA601007B7F4}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{95BA42B5-B00E-4986-B9B5-517140378452}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{95BA42B5-B00E-4986-B9B5-517140378452}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{95BA42B5-B00E-4986-B9B5-517140378452}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{95BA42B5-B00E-4986-B9B5-517140378452}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{31D405F0-723E-4A6C-A52B-F4CB19A8D845}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{31D405F0-723E-4A6C-A52B-F4CB19A8D845}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{31D405F0-723E-4A6C-A52B-F4CB19A8D845}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{31D405F0-723E-4A6C-A52B-F4CB19A8D845}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{AF64451F-E2BD-41C2-B083-F60C26AE2A9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{AF64451F-E2BD-41C2-B083-F60C26AE2A9F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{AF64451F-E2BD-41C2-B083-F60C26AE2A9F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{AF64451F-E2BD-41C2-B083-F60C26AE2A9F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{3AE5B968-1916-4213-97E4-F88F51BCAB23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{3AE5B968-1916-4213-97E4-F88F51BCAB23}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{3AE5B968-1916-4213-97E4-F88F51BCAB23}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{3AE5B968-1916-4213-97E4-F88F51BCAB23}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{3AE5B968-1916-4213-97E4-F88F51BCAB23}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{B8D80A2B-F636-4E27-BCAA-EA601007B7F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B8D80A2B-F636-4E27-BCAA-EA601007B7F4}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B8D80A2B-F636-4E27-BCAA-EA601007B7F4}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B8D80A2B-F636-4E27-BCAA-EA601007B7F4}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {0B8ABEAD-D2B5-4370-A187-62B5ABE4EE50} | ||
EndGlobalSection | ||
EndGlobal |
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 |
---|---|---|
|
@@ -8,6 +8,30 @@ | |
* Evolution of [Xamarin.Forms](https://github.com/xamarin/xamarin.forms) | ||
* Targeting .NET 6, previews end of year | ||
|
||
## Maui.sln | ||
|
||
### SDKS required | ||
- Install the SDKs listed here https://github.com/xamarin/net6-samples | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We moved the repo to dotnet/net6-mobile-samples |
||
|
||
- And/or run the following | ||
|
||
``` | ||
dotnet tool install Cake.Tool -g | ||
dotnet cake --target=provision | ||
``` | ||
|
||
### Running | ||
|
||
#### IDE | ||
- If you have Visual Studio 16.9 P4 installed you can open `Maui.sln` and run it from there. | ||
|
||
#### Command Line | ||
|
||
``` | ||
dotnet build src\Platform.Handlers\samples\Sample.Droid\Sample.Droid-net6.csproj -t:Run | ||
dotnet build src\Platform.Handlers\samples\Sample.iOS\Sample.iOS-net6.csproj -t:Run | ||
``` | ||
|
||
## Current News | ||
|
||
[![](Assets/poster-standup.png)](https://www.youtube.com/watch?v=5bK2ICHtMxo) | ||
|
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 |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
|
||
<!-- Auto install any missing Android SDKs --> | ||
<PropertyGroup Condition="'$(CI)' == 'true'"> | ||
<AndroidRestoreOnBuild Condition="'$(AndroidRestoreOnBuild)' == ''">True</AndroidRestoreOnBuild> | ||
<AndroidRestoreOnBuild Condition="'$(AndroidRestoreOnBuild)' == ''">False</AndroidRestoreOnBuild> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property currently doesn't work with NET6 |
||
<AcceptAndroidSDKLicenses Condition="'$(AcceptAndroidSDKLicenses)' == ''">True</AcceptAndroidSDKLicenses> | ||
</PropertyGroup> | ||
</Project> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could use the ANDROID define instead, it is there by default in .NET 6.