Skip to content

Commit

Permalink
Merge pull request #174 from unoplatform/dev/jela/net6
Browse files Browse the repository at this point in the history
feat: Add .NET 6 mobile support
  • Loading branch information
jeromelaban authored Mar 23, 2022
2 parents db22867 + c384499 commit 12261e2
Show file tree
Hide file tree
Showing 25 changed files with 1,910 additions and 25,461 deletions.
10 changes: 8 additions & 2 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
- job: Windows

pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'

variables:
BuildConfiguration: Release
Expand Down Expand Up @@ -37,11 +37,14 @@ jobs:

- task: BatchScript@1
inputs:
filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
filename: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
arguments: -no_logo
modifyEnvironment: true
displayName: Setup Environment Variables

- powershell: .\build\Install-WindowsSdkISO.ps1 18362
displayName: Install Windows SDK 18362

- task: NuGetToolInstaller@0
displayName: Use NuGet 5.6.0
inputs:
Expand All @@ -59,6 +62,9 @@ jobs:
version: '5.0.402'
displayName: Use .NET SDK 5.0.402

- template: build/ci/dotnet-install-windows.yml
- template: build/ci/jdk-setup.yml

- task: DotNetCoreCLI@2
inputs:
command: custom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<PackageId>Uno.CommunityToolkit.WinUI.Connectivity</PackageId>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
</ItemGroup>
<!-- END UNO SPECIFIC -->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<PackageId>Uno.CommunityToolkit.WinUI.DeveloperTools</PackageId>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
</ItemGroup>
<!-- END UNO SPECIFIC -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
<PackageReference Include="Uno.WinUI.Sample.Banner" Version="1.44.0-dev.42" />
<PackageReference Include="Uno.UniversalImageLoader" Version="1.9.33" />
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed">
<Version>2.3.0-uno.12</Version>
<Version>2.3.1-uno.2</Version>
</PackageReference>
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.1.9" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
</ItemGroup>
<ItemGroup>
Expand Down
27,216 changes: 1,810 additions & 25,406 deletions CommunityToolkit.WinUI.SampleApp.Droid/Resources/Resource.designer.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<!-- Note that for WebAssembly version 1.1.1 of the console logger required -->
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
<PackageReference Include="Uno.WinUI.Skia.Gtk" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.0.0-dev.5688" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.WinUI.Skia.Gtk" Version="4.1.9" />
<PackageReference Include="Uno.WinUI.RemoteControl" Version="4.1.9" Condition="'$(Configuration)'=='Debug'" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.1.9" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
<PackageReference Include="Uno.WinUI.Sample.Banner" Version="1.44.0-dev.42" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
-->

<ItemGroup>
<PackageReference Include="Uno.WinUI.WebAssembly" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.WinUI.WebAssembly" Version="4.1.9" />
<PackageReference Include="Uno.Wasm.Bootstrap" Version="3.0.0" />
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.1" />
Expand All @@ -38,7 +38,7 @@
<Reference Include="System.Net.Http" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="5.0.1" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.1.9" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1" />
<PackageReference Include="Uno.WinUI.Sample.Banner" Version="1.44.0-dev.42" />
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.3.0-uno.12" />
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.3.1-uno.2" />
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.1.9" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Toolkit.Parsers\Microsoft.Toolkit.Parsers.csproj">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<PackageId>Uno.CommunityToolkit.WinUI.UI.Animations</PackageId>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />

<Compile Remove="Effects\Blur.cs" />
<Compile Remove="Effects\Saturation.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
<ItemGroup>
<PackageReference Remove="Microsoft.Xaml.Behaviors.WinUI.Managed" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.3.0-uno.12" />

<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.3.1-uno.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0-windows10.0.18362.0'">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="MSBuild.Sdk.Extras">
<Project Sdk="MSBuild.Sdk.Extras">

<PropertyGroup>
<TargetFrameworks>net5.0-windows10.0.18362.0</TargetFrameworks>
Expand Down Expand Up @@ -62,9 +62,9 @@
<!-- Validation fails as the generated document is too big -->
<XamarinAndroidSupportSkipVerifyVersions>true</XamarinAndroidSupportSkipVerifyVersions>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
</ItemGroup>
<!-- END UNO SPECIFIC -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
<PackageId>Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid</PackageId>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'monoandroid11.0' or '$(TargetFramework)' == 'xamarinios10' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
<!-- Validation fails as the generated document is too big -->
<XamarinAndroidSupportSkipVerifyVersions>true</XamarinAndroidSupportSkipVerifyVersions>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.WinUI" Version="4.1.9" />

<Page Remove="RichSuggestBox/**/*.xaml" />
<Compile Remove="RichSuggestBox/**/*.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
<!-- Validation fails as the generated document is too big -->
<XamarinAndroidSupportSkipVerifyVersions>true</XamarinAndroidSupportSkipVerifyVersions>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
</ItemGroup>
<!-- END UNO SPECIFIC -->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
<!-- Validation fails as the generated document is too big -->
<XamarinAndroidSupportSkipVerifyVersions>true</XamarinAndroidSupportSkipVerifyVersions>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.ColorCode.WinUI" Version="2.1.0-uno.32" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
<PackageReference Include="Uno.ColorCode.WinUI" Version="2.1.0-uno.36" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'monoandroid11.0' or '$(TargetFramework)' == 'xamarinios10' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<!-- Validation fails as the generated document is too big -->
<XamarinAndroidSupportSkipVerifyVersions>true</XamarinAndroidSupportSkipVerifyVersions>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />

<Page Remove="Eyedropper/**/*.xaml" />
<Page Remove="InfiniteCanvas/**/*.xaml" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
<!-- Validation fails as the generated document is too big -->
<XamarinAndroidSupportSkipVerifyVersions>true</XamarinAndroidSupportSkipVerifyVersions>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Remove="Microsoft.UI.Xaml" />
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
</ItemGroup>
<!-- END UNO SPECIFIC -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
<!-- Validation fails as the generated document is too big -->
<XamarinAndroidSupportSkipVerifyVersions>true</XamarinAndroidSupportSkipVerifyVersions>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />


<Compile Remove="Brushes\**\*.cs" />
Expand Down
6 changes: 3 additions & 3 deletions CommunityToolkit.WinUI.UI/CommunityToolkit.WinUI.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<PackageId>Uno.CommunityToolkit.WinUI.UI</PackageId>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.3.0-uno.12" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
<PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.3.1-uno.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'=='uap10.0.17763'">
Expand Down
4 changes: 2 additions & 2 deletions CommunityToolkit.WinUI/CommunityToolkit.WinUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<PackageId>Uno.CommunityToolkit.WinUI</PackageId>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == 'MonoAndroid' or '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS' or '$(TargetFrameworkIdentifier)' == '.NETStandard' or '$(TargetFrameworkIdentifier)' == 'Xamarin.Mac'">
<PackageReference Include="Uno.WinUI" Version="4.0.0-dev.5688" />
<ItemGroup Condition="'$(_IsUno)'=='true'">
<PackageReference Include="Uno.WinUI" Version="4.1.9" />
</ItemGroup>

<!-- END UNO SPECIFIC -->
Expand Down
9 changes: 5 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
<!-- BEGIN Uno Specific -->

<PropertyGroup>
<TargetFrameworksOverride>MonoAndroid11.0;xamarinios10;netstandard2.0;xamarinmac20</TargetFrameworksOverride>
<TargetFrameworksOverride>MonoAndroid11.0;xamarinios10;netstandard2.0;xamarinmac20;net6.0-ios;net6.0-macos;net6.0-android;net6.0-maccatalyst</TargetFrameworksOverride>
<_IsUno>true</_IsUno>
<!--<TargetFrameworksOverride>netstandard2.0</TargetFrameworksOverride>-->

<NoWarn>$(NoWarn);SA1633</NoWarn>
Expand All @@ -108,7 +109,7 @@
<!--<TargetFrameworksOverride>netstandard2.0</TargetFrameworksOverride>-->
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'MonoAndroid80' or '$(TargetFramework)' == 'xamarinios10' ">
<PropertyGroup Condition=" '$(_IsUno)'=='true' ">
<NoWarn>$(NoWarn);CS0649;CS0067;CS1998</NoWarn>
</PropertyGroup>

Expand All @@ -120,15 +121,15 @@
<JavaSdkDirectory Condition="'$(JavaSdkDirectory)'=='' and '$(JAVA_HOME_8_X64)'!=''">$(JAVA_HOME_8_X64)</JavaSdkDirectory>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'MonoAndroid80' or '$(TargetFramework)' == 'xamarinios10' ">
<PropertyGroup Condition=" '$(_IsUno)'=='true' ">
<ExtrasEnableDefaultPageItems>false</ExtrasEnableDefaultPageItems>
</PropertyGroup>

<PropertyGroup>
<EnableDefaultPageItems>false</EnableDefaultPageItems>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'MonoAndroid80' or '$(TargetFramework)' == 'xamarinios10' ">
<ItemGroup Condition=" '$(_IsUno)'=='true' ">
<None Remove="$(MSBuildProjectDirectory)\**\*.xaml"/>
<Page Include="$(MSBuildProjectDirectory)\**\*.xaml" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);$(ExtrasDefaultPageExcludes)"
XamlRuntime="WinUI" />
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<ItemGroup Condition="'$(UnoUIVersionOverride)'!=''">
<!-- Force all projects to use the same uno version to avoid net5 build issues on linux -->
<PackageReference Update="Uno.WinUI"
Version="4.0.0-dev.5688" />
Version="4.1.9" />
</ItemGroup>
<!-- END Uno Specific -->

Expand Down
2 changes: 1 addition & 1 deletion build/Windows.Toolkit.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<TargetPlatformBaseVersion>10.0</TargetPlatformBaseVersion>
<TargetPlatformRevision>18362</TargetPlatformRevision>
<TargetPlatformMinRevision>17763</TargetPlatformMinRevision>
<WindowsAppSDKVersion>1.0.0-preview2</WindowsAppSDKVersion>
<WindowsAppSDKVersion>1.0.1</WindowsAppSDKVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
32 changes: 32 additions & 0 deletions build/ci/dotnet-install-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
parameters:
DotNetVersion: '6.0.300-preview.22154.4'
UnoCheck_Version: '1.1.0-dev.22'
UnoCheck_Manifest: 'https://raw.githubusercontent.com/unoplatform/uno.check/d14571a546b55f58e51e392c04cf098168d6fe2d/manifests/uno.ui-preview.manifest.json'

steps:

# Required until .NET 6 installs properly on Windows using UseDotnet
# using preview builds
- powershell: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
& .\dotnet-install.ps1 -Version ${{ parameters.DotNetVersion }} -InstallDir "$env:ProgramFiles\dotnet\" -Verbose
& dotnet --list-sdks
displayName: Install .NET ${{ parameters.DotNetVersion }}
errorActionPreference: stop
retryCountOnTaskFailure: 3
#- task: UseDotNet@2
# displayName: 'Use .NET Core SDK ${{ parameters.DotNetVersion }}'
# retryCountOnTaskFailure: 3
# inputs:
# packageType: sdk
# version: ${{ parameters.DotNetVersion }}
# includePreviewVersions: true

- powershell: |
& dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json
& uno-check -v --ci --non-interactive --fix --skip xcode --skip gtk3 --skip vswin --skip androidemulator --skip androidsdk --skip vsmac --manifest ${{ parameters.UnoCheck_Manifest }}
displayName: Install .NET Workloads
errorActionPreference: continue
ignoreLASTEXITCODE: true
retryCountOnTaskFailure: 3
6 changes: 6 additions & 0 deletions build/ci/jdk-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:

- pwsh: |
echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)"
echo "##vso[task.setvariable variable=JavaSdkDirectory]$(JAVA_HOME_11_X64)"
displayName: Select JDK 11

0 comments on commit 12261e2

Please sign in to comment.