Skip to content

Commit 5a4efad

Browse files
Merge branch 'main' of https://github.com/BagavathiPerumal/maui into fix-26396
# Conflicts: # src/Core/src/Platform/Windows/WindowRootView.cs
2 parents 20d6d48 + 62323b4 commit 5a4efad

723 files changed

Lines changed: 8758 additions & 4226 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@
1010
**/localize/*.json @tj-devel709
1111
**/*.resx @tj-devel709
1212
**.*.resx.lcl @tj-devel709
13-
14-
# UI Testing
15-
/src/Controls/tests/TestCases.*.Tests @jfversluis @jsuarezruiz

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ body:
4242
label: Version with bug
4343
description: In what version do you see this issue? Run `dotnet workload list` to find your version.
4444
options:
45+
- 9.0.21 SR2.1
46+
- 9.0.14 SR1.4
4547
- 9.0.12 SR1.2
4648
- 9.0.10 SR1
4749
- 9.0.0 GA
@@ -152,6 +154,8 @@ body:
152154
- 9.0.0 GA
153155
- 9.0.10 SR1
154156
- 9.0.12 SR1.2
157+
- 9.0.14 SR1.4
158+
- 9.0.21 SR2.1
155159
validations:
156160
required: true
157161
- type: dropdown

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,4 @@ snapshots-diff/
382382
.dotnet
383383
temp
384384
.packages
385+
/src/Templates/.tempTemplateOutput

NuGet.config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
<add key="skiasharp" value="https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json" />
1414
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
1515
<add key="dotnet-libraries-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries-transport/nuget/v3/index.json" />
16-
<!-- Added manually for .NET 8 MAUI -->-
17-
<add key="darc-pub-dotnet-maui-a33a875e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-maui-a33a875e/nuget/v3/index.json" /></packageSources>
16+
<!-- Added manually for .NET 8 MAUI -->
17+
<add key="darc-pub-dotnet-maui-a33a875e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-maui-a33a875e/nuget/v3/index.json" />
18+
</packageSources>
1819
<activePackageSource>
1920
<add key="All" value="(Aggregate source)" />
2021
</activePackageSource>

eng/BannedSymbols.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ M:Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionDescripto
22
M:Android.Content.Res.ColorStateList.#ctor(System.Int32[][],System.Int32[]);Use Microsoft.Maui.PlatformInterop.Get*ColorStateList() Java methods instead
33
P:Microsoft.Maui.MauiWinUIApplication.Services;Use the IPlatformApplication.Current.Services instead
44
P:Microsoft.Maui.MauiWinUIApplication.Application;Use the IPlatformApplication.Current.Application instead
5-
P:Microsoft.UI.Xaml.Window.AppWindow;This API doesn't have null safety. Use GetAppWindow() and make sure to account for the possibility that GetAppWindow() might be null.
5+
P:Microsoft.UI.Xaml.Window.AppWindow;This API doesn't have null safety. Use GetAppWindow() and make sure to account for the possibility that GetAppWindow() might be null.
6+
P:Microsoft.UI.Xaml.Controls.Panel.Children;Use MauiPanel.CachedChildren instead to avoid performance hit

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<MicrosoftExtensionsLoggingDebugVersion>9.0.0</MicrosoftExtensionsLoggingDebugVersion>
5050
<MicrosoftExtensionsPrimitivesVersion>9.0.0</MicrosoftExtensionsPrimitivesVersion>
5151
<!-- xamarin/xamarin-android -->
52-
<MicrosoftAndroidSdkWindowsPackageVersion>35.0.7</MicrosoftAndroidSdkWindowsPackageVersion>
52+
<MicrosoftAndroidSdkWindowsPackageVersion>35.0.24</MicrosoftAndroidSdkWindowsPackageVersion>
5353
<!-- xamarin/xamarin-macios -->
5454
<MicrosoftMacCatalystSdknet90_180PackageVersion>18.0.9617</MicrosoftMacCatalystSdknet90_180PackageVersion>
5555
<MicrosoftmacOSSdknet90_150PackageVersion>15.0.9617</MicrosoftmacOSSdknet90_150PackageVersion>

eng/configure-toolset.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# We can't use already installed dotnet cli since we need to install additional workloads.
2+
# We could potentially try to find an existing installation that has all the required workloads,
3+
# but it's unlikely one will be available.
4+
5+
$script:useInstalledDotNetCli = $false

eng/configure-toolset.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# We can't use already installed dotnet cli since we need to install additional workloads.
2+
# We could potentially try to find an existing installation that has all the required workloads,
3+
# but it's unlikely one will be available.
4+
5+
useInstalledDotNetCli="false"
6+
7+
# Working around issue https://github.com/dotnet/arcade/issues/7327
8+
# DisableNativeToolsetInstalls=true
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
parameters:
2+
mauiSourcePath: $(Build.SourcesDirectory)
3+
buildConfig: Debug
4+
repoLogPath: $(Build.Arcade.LogsPath)
5+
installPackageArtifacts: true
6+
7+
steps:
8+
- checkout: self
9+
fetchDepth: 1
10+
clean: true
11+
12+
- template: /eng/pipelines/common/setup-jdk.yml
13+
14+
- task: UseDotNet@2
15+
displayName: 'Use .NET SDK $(DOTNET_VERSION)'
16+
inputs:
17+
packageType: sdk
18+
version: $(DOTNET_VERSION)
19+
includePreviewVersions: true
20+
21+
22+
- ${{ if eq(parameters.installPackageArtifacts, true) }}:
23+
- task: DownloadPipelineArtifact@2
24+
displayName: Download PackageArtifacts
25+
inputs:
26+
artifactName: PackageArtifacts
27+
itemPattern: '**/*.nupkg'
28+
targetPath: ${{ parameters.mauiSourcePath }}/artifacts
29+
30+
- task: DotNetCoreCLI@2
31+
displayName: Install dotnet preview without workloads
32+
inputs:
33+
projects: ${{ parameters.mauiSourcePath }}/src/DotNet/DotNet.csproj
34+
arguments: '-p:InstallWorkloadPacks=false -c ${{ parameters.buildConfig }} -bl:${{ parameters.repoLogPath }}/install-dotnet.binlog'
35+
36+
- task: DotNetCoreCLI@2
37+
displayName: Install dotnet preview workloads from PackageArtifacts
38+
inputs:
39+
projects: ${{ parameters.mauiSourcePath }}/src/DotNet/DotNet.csproj
40+
arguments: '-t:Install -c ${{ parameters.buildConfig }} -bl:${{ parameters.repoLogPath }}/install-dotnet.binlog'
41+
42+
- ${{ else }}:
43+
- task: DotNetCoreCLI@2
44+
displayName: Install dotnet preview
45+
inputs:
46+
projects: ${{ parameters.mauiSourcePath }}/src/DotNet/DotNet.csproj
47+
arguments: '-c ${{ parameters.buildConfig }} -bl:${{ parameters.repoLogPath }}/install-dotnet.binlog'
48+
49+
- template: /eng/pipelines/common/run-dotnet-preview.yml
50+
parameters:
51+
displayName: Build MSBuild Tasks
52+
mauiSourcePath: ${{ parameters.mauiSourcePath }}
53+
project: ${{ parameters.mauiSourcePath }}/Microsoft.Maui.BuildTasks.slnf
54+
arguments: '-c ${{ parameters.buildConfig }} -bl:${{ parameters.repoLogPath }}/Microsoft.Maui.BuildTasks.binlog'
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Template for build + pack on dnceng
2+
parameters:
3+
- name: pool
4+
type: object
5+
- name: enableSourceBuild
6+
type: boolean
7+
default: false
8+
- name: enableSourceIndex
9+
type: boolean
10+
default: false
11+
- name: sourceIndexParams
12+
type: object
13+
default: []
14+
- name: publishTaskPrefix
15+
type: string
16+
default: '1ES.'
17+
18+
stages:
19+
- stage: Pack
20+
displayName: Pack .NET MAUI
21+
dependsOn: []
22+
jobs:
23+
- template: /eng/common/templates-official/jobs/jobs.yml
24+
parameters:
25+
helixRepo: dotnet/maui
26+
pool: ${{ parameters.pool }}
27+
enableMicrobuild: true
28+
enablePublishUsingPipelines: true
29+
enablePublishBuildAssets: true
30+
enableTelemetry: true
31+
enableSourceBuild: ${{ parameters.enableSourceBuild }}
32+
enableSourceIndex: ${{ parameters.enableSourceIndex }}
33+
sourceIndexParams: ${{ parameters.sourceIndexParams }}
34+
publishAssetsImmediately: true
35+
enablePublishBuildArtifacts: true
36+
enablePublishTestResults: true
37+
workspace:
38+
clean: all
39+
jobs:
40+
- job: pack_net_Windows
41+
displayName: Pack Windows
42+
timeoutInMinutes: 240
43+
preSteps:
44+
- checkout: self
45+
fetchDepth: 1
46+
clean: true
47+
steps:
48+
- template: /eng/pipelines/common/setup-jdk.yml
49+
50+
- script: $(_buildScript)
51+
-restore -build
52+
-configuration $(_BuildConfig)
53+
/p:ArchiveTests=true
54+
/p:TreatWarningsAsErrors=false
55+
/bl:$(Build.Arcade.LogsPath)build.binlog
56+
$(_OfficialBuildIdArgs)
57+
displayName: 🛠️ Build
58+
59+
# Run on public pipeline
60+
- ${{ if eq(variables['_RunAsPublic'], 'true') }}:
61+
- script: $(_buildScript)
62+
-restore -pack
63+
-publish $(_PublishArgs)
64+
-configuration $(_BuildConfig)
65+
/bl:$(Build.Arcade.LogsPath)pack.binlog
66+
$(_OfficialBuildIdArgs)
67+
displayName: Pack & Publish
68+
69+
# Run on internal pipeline
70+
- ${{ if eq(variables['_RunAsInternal'], 'true') }}:
71+
- script: $(_buildScript)
72+
-restore -pack
73+
-sign $(_SignArgs)
74+
-publish $(_PublishArgs)
75+
-configuration $(_BuildConfig)
76+
/bl:$(Build.Arcade.LogsPath)pack.binlog
77+
$(_OfficialBuildIdArgs)
78+
displayName: Pack, Sign & Publish
79+
80+
# only for workloads
81+
- script: $(_buildScript)
82+
-restore -build
83+
-sign $(_SignArgs)
84+
-publish $(_PublishArgs)
85+
-configuration $(_BuildConfig)
86+
/bl:$(Build.Arcade.LogsPath)/build-workloads.binlog
87+
-projects src/Workload/workloads.csproj
88+
$(_OfficialBuildIdArgs)
89+
displayName: Build Workloads
90+
91+
- task: ${{ parameters.publishTaskPrefix }}PublishPipelineArtifact@1
92+
displayName: Publish VSDrop MSIs
93+
inputs:
94+
targetPath: '$(Build.SourcesDirectory)/artifacts/VSSetup/$(_BuildConfig)'
95+
artifactName: VSDropInsertion

0 commit comments

Comments
 (0)