Skip to content

Commit 2efb906

Browse files
committed
Merge branch 'main' into user/DinahK-2SO/feature_settingsidentifier_filetypefilterindex
2 parents 28ed930 + 2a6cfcd commit 2efb906

File tree

61 files changed

+2397
-813
lines changed

Some content is hidden

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

61 files changed

+2397
-813
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
[Windows App SDK](https://aka.ms/winappsdk) (formerly Project Reunion) is a set of libraries, frameworks, components, and tools that you can use in your apps to access powerful Windows platform functionality from all kinds of apps on many versions of Windows. The Windows App SDK combines the powers of Win32 native applications alongside modern API usage techniques, so your apps light up everywhere your users are.
2525

26-
- **WinUI 3 support:** [WinUI](https://aka.ms/winui) embodies Fluent Design to enable intuitive, accessible, and powerful experiences and the latest user interface patterns.
26+
- **WinUI 3 support:** [WinUI](https://learn.microsoft.com/windows/apps/winui/winui3/) embodies Fluent Design to enable intuitive, accessible, and powerful experiences and the latest user interface patterns.
2727
- **Access modern features:** [Modern resource tooling](https://github.com/microsoft/WindowsAppSDK/issues/11), [modern lifecycle helpers](https://github.com/microsoft/WindowsAppSDK/issues/9), [startup tasks](https://github.com/microsoft/WindowsAppSDK/issues/10), and more without having to rewrite your app.
2828
- **Backwards compatibility:** Down to Windows 10 1809 (build 17763). There may be some API that are dependent on new OS features
2929
(like new Action Center functionality), however we will do our best to ensure this is the exception and not the norm, and provide reasonable fallbacks when possible.
@@ -32,7 +32,7 @@
3232

3333
## 📋 Getting started with Windows App SDK
3434

35-
* [Build your first app with Windows App SDK](https://learn.microsoft.com/windows/apps/winui/winui3/create-your-first-winui3-app)
35+
* [Build your first app with WinUI](https://learn.microsoft.com/windows/apps/get-started/start-here)
3636
* [Developer documentation](https://aka.ms/windowsappsdkdocs)
3737
* [Samples & resources](https://learn.microsoft.com/windows/apps/get-started/samples)
3838
* [Windows App SDK samples](https://github.com/microsoft/WindowsAppSDK-Samples)

WindowsAppRuntime.sln

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StoragePickers", "StoragePi
750750
EndProject
751751
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Deployment.WindowsAppRuntime.Test.SingletonHigherVersion", "test\Deployment\data\WindowsAppRuntime.Test.SingletonHigherVersion\WindowsAppRuntime.Test.SingletonHigherVersion.vcxproj", "{462CF10A-E6B5-4005-8E25-132D1DE589B7}"
752752
EndProject
753+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Deployment.WindowsAppRuntime.Test.SingletonLowerVersion", "test\Deployment\data\WindowsAppRuntime.Test.SingletonLowerVersion\WindowsAppRuntime.Test.SingletonLowerVersion.vcxproj", "{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}"
754+
EndProject
753755
Global
754756
GlobalSection(SolutionConfigurationPlatforms) = preSolution
755757
Debug|Any CPU = Debug|Any CPU
@@ -2644,6 +2646,22 @@ Global
26442646
{462CF10A-E6B5-4005-8E25-132D1DE589B7}.Release|x64.Build.0 = Release|x64
26452647
{462CF10A-E6B5-4005-8E25-132D1DE589B7}.Release|x86.ActiveCfg = Release|Win32
26462648
{462CF10A-E6B5-4005-8E25-132D1DE589B7}.Release|x86.Build.0 = Release|Win32
2649+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|Any CPU.ActiveCfg = Debug|x64
2650+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|Any CPU.Build.0 = Debug|x64
2651+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|ARM64.ActiveCfg = Debug|ARM64
2652+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|ARM64.Build.0 = Debug|ARM64
2653+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|x64.ActiveCfg = Debug|x64
2654+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|x64.Build.0 = Debug|x64
2655+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|x86.ActiveCfg = Debug|Win32
2656+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Debug|x86.Build.0 = Debug|Win32
2657+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|Any CPU.ActiveCfg = Release|x64
2658+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|Any CPU.Build.0 = Release|x64
2659+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|ARM64.ActiveCfg = Release|ARM64
2660+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|ARM64.Build.0 = Release|ARM64
2661+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|x64.ActiveCfg = Release|x64
2662+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|x64.Build.0 = Release|x64
2663+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|x86.ActiveCfg = Release|Win32
2664+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D}.Release|x86.Build.0 = Release|Win32
26472665
EndGlobalSection
26482666
GlobalSection(SolutionProperties) = preSolution
26492667
HideSolutionNode = FALSE
@@ -2871,6 +2889,7 @@ Global
28712889
{346E099B-45E4-FF40-E63D-8B34915223C1} = {8630F7AA-2969-4DC9-8700-9B468C1DC21D}
28722890
{06AA7FD7-36BE-41AC-9008-56919D1612C6} = {3B706C5C-55E0-4B76-BF59-89E20FE46795}
28732891
{462CF10A-E6B5-4005-8E25-132D1DE589B7} = {2B653A15-2482-40E5-9509-C531E69D0749}
2892+
{7A3C8F5D-9B2E-4A1F-8D6C-3E9F7B4A2C1D} = {2B653A15-2482-40E5-9509-C531E69D0749}
28742893
EndGlobalSection
28752894
GlobalSection(ExtensibilityGlobals) = postSolution
28762895
SolutionGuid = {4B3D7591-CFEC-4762-9A07-ABE99938FB77}

build/WindowsAppSDK-Foundation-Official.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,29 @@ extends:
129129

130130
stages:
131131

132-
- stage: ManualValidation_RuntimeCompatibility
133-
displayName: 'Manual Validation - RuntimeCompatibilityChange Enums'
134-
# Only run this validation for release branches
135-
condition: and(contains(variables['Build.SourceBranch'], 'release/'), eq(parameters.validateRuntimeCompatibility, true))
136-
dependsOn: []
137-
jobs:
138-
- job: waitForValidation
139-
displayName: 'Wait for external validation'
140-
pool: server
141-
timeoutInMinutes: 120 # 2 hours timeout
142-
steps:
143-
- task: ManualValidation@0
144-
displayName: 'Confirm RuntimeCompatibilityChange Enums Added'
145-
inputs:
146-
notifyUsers: ''
147-
instructions: |
148-
SERVICING BUILD - RuntimeCompatibilityChange VALIDATION
149-
150-
Verify dev/RuntimeCompatibilityOptions/RuntimeCompatibilityOptions.idl in Foundation
151-
152-
Unless none of the servicing changes have containment, Foundation MUST include the RuntimeCompatibilityChange
153-
enum values associated with this servicing release before kicking off this official build.
132+
- ${{ if eq(parameters.validateRuntimeCompatibility, 'true') }}:
133+
- stage: ManualValidation_RuntimeCompatibility
134+
displayName: 'Manual Validation - RuntimeCompatibilityChange Enums'
135+
# Only run this validation for release branches
136+
condition: contains(variables['Build.SourceBranch'], 'release/')
137+
dependsOn: []
138+
jobs:
139+
- job: waitForValidation
140+
displayName: 'Wait for external validation'
141+
pool: server
142+
timeoutInMinutes: 120 # 2 hours timeout
143+
steps:
144+
- task: ManualValidation@0
145+
displayName: 'Confirm RuntimeCompatibilityChange Enums Added'
146+
inputs:
147+
notifyUsers: ''
148+
instructions: |
149+
SERVICING BUILD - RuntimeCompatibilityChange VALIDATION
150+
151+
Verify dev/RuntimeCompatibilityOptions/RuntimeCompatibilityOptions.idl in Foundation
152+
153+
Unless none of the servicing changes have containment, Foundation MUST include the RuntimeCompatibilityChange
154+
enum values associated with this servicing release before kicking off this official build.
154155
155156
- template: AzurePipelinesTemplates\WindowsAppSDK-Build-Stage.yml@self
156157
parameters:

build/scripts/DownloadDotNetRuntimeInstaller.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ else
4141
if(-not(Test-Path $outputPath))
4242
{
4343
Write-Host "Downloading $downloadurl to $outputPath"
44-
Invoke-WebRequest $downloadurl -OutFile $outputPath
44+
Invoke-WebRequest $downloadurl -OutFile $outputPath -UseBasicParsing
4545
}
4646
else
4747
{

build/scripts/DownloadVCLibsDesktop.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $downloadurl = "https://aka.ms/Microsoft.VCLibs.$Platform.14.00.Desktop.appx"
2121
if(-not(Test-Path $outputPath))
2222
{
2323
Write-Host "Downloading $downloadurl to $outputPath"
24-
Invoke-WebRequest $downloadurl -OutFile $outputPath
24+
Invoke-WebRequest $downloadurl -OutFile $outputPath -UseBasicParsing
2525
}
2626
else
2727
{

build/scripts/DownloadVCRedistInstaller.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $downloadurl = "https://aka.ms/vs/17/release/vc_redist.$Platform.exe"
2121
if(-not(Test-Path $outputPath))
2222
{
2323
Write-Host "Downloading $downloadurl to $outputPath"
24-
Invoke-WebRequest $downloadurl -OutFile $outputPath
24+
Invoke-WebRequest $downloadurl -OutFile $outputPath -UseBasicParsing
2525
}
2626
else
2727
{

build/scripts/windows-sdk.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function Install-EXE
2626
Write-Host "Downloading $Name..."
2727
$FilePath = "${env:Temp}\$Name"
2828

29-
Invoke-WebRequest -Uri $Url -OutFile $FilePath
29+
Invoke-WebRequest -Uri $Url -OutFile $FilePath -UseBasicParsing
3030

3131
Write-Host "Starting Install $Name..."
3232
$process = Start-Process -FilePath $FilePath -ArgumentList $ArgumentList -Wait -PassThru

dev/Deployment/DeploymentManager.cpp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ namespace winrt::Microsoft::Windows::ApplicationModel::WindowsAppRuntime::implem
368368
const std::wstring& packageIdentifier) try
369369
{
370370
auto packageFullNames{ FindPackagesByFamily(packageFamilyName) };
371-
bool match{};
371+
UINT64 highestVersionFound{ 0 }; // There is no package with version 0
372+
std::wstring highestVersionPackageFullName{};
372373
for (const auto& packageFullName : packageFullNames)
373374
{
374375
auto packagePath{ GetPackagePath(packageFullName) };
@@ -378,18 +379,20 @@ namespace winrt::Microsoft::Windows::ApplicationModel::WindowsAppRuntime::implem
378379
}
379380

380381
auto packageId{ AppModel::Identity::PackageIdentity::FromPackageFullName(packageFullName.c_str()) };
381-
if (packageId.Version().Version >= targetVersion.Version)
382+
const auto packageVersion{ packageId.Version().Version };
383+
if (packageVersion > highestVersionFound)
382384
{
383-
match = true;
384-
if (packageId.Version().Version > targetVersion.Version)
385-
{
386-
g_existingTargetPackagesIfHigherVersion.insert(std::make_pair(packageIdentifier, packageFullName));
387-
}
388-
break;
385+
highestVersionFound = packageVersion;
386+
highestVersionPackageFullName = packageFullName;
389387
}
390388
}
391389

392-
RETURN_HR_IF(HRESULT_FROM_WIN32(ERROR_NOT_FOUND), !match);
390+
if (highestVersionFound > targetVersion.Version)
391+
{
392+
g_existingTargetPackagesIfHigherVersion[packageIdentifier] = highestVersionPackageFullName;
393+
}
394+
395+
RETURN_HR_IF(HRESULT_FROM_WIN32(ERROR_NOT_FOUND), highestVersionFound < targetVersion.Version);
393396
return S_OK;
394397
}
395398
CATCH_RETURN()

dev/MRTCore/build/DownloadDotNetCoreSdk.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Write-Host "Installing .NET SDK..."
154154

155155
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Ssl3,Tls,Tls11,Tls12'
156156

157-
Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile $dotnetInstallScript
157+
Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile $dotnetInstallScript -UseBasicParsing
158158

159159
if (-not $latestAlreadyInstalled)
160160
{

dev/MRTCore/build/MSBuildFunctions.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $MSBuildUninstallParams = "uninstall --norestart --quiet --wait --force --instal
1818
function Download-MSBuild([string]$OutFile)
1919
{
2020
Write-Host -NoNewline "Downloading $OutFile... "
21-
Invoke-WebRequest -Uri $MSBuildInstallURI -OutFile $OutFile
21+
Invoke-WebRequest -Uri $MSBuildInstallURI -OutFile $OutFile -UseBasicParsing
2222
Write-Host -ForegroundColor Green Done.
2323
}
2424

0 commit comments

Comments
 (0)