Skip to content

Commit 10e47b5

Browse files
authored
Added missing framework references for WinUI (#890)
* Added missing framework references * Updated license headers on PowerShell files * Included a script to install required Windows SDK
1 parent aad795f commit 10e47b5

File tree

6 files changed

+33
-3
lines changed

6 files changed

+33
-3
lines changed

scripts/Install-WindowsSDK.ps1

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
Write-Host "Downloading Windows SDK 10.0.14393.795..." -ForegroundColor Green
5+
Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=838916 -OutFile sdksetup.exe -UseBasicParsing
6+
7+
Write-Host "Installing Windows SDK, if setup requests elevation please approve." -ForegroundColor Green
8+
$process = Start-Process -Wait sdksetup.exe -ArgumentList "/quiet", "/norestart", "/ceip off", "/features OptionId.WindowsSoftwareDevelopmentKit" -PassThru
9+
Remove-Item sdksetup.exe -Force
10+
11+
if($process.ExitCode -eq 0)
12+
{
13+
Write-Host "Done" -ForegroundColor Green
14+
}
15+
else
16+
{
17+
Write-Error "Failed to install Windows SDK (Exit code: $($process.ExitCode))"
18+
}

scripts/PortableToFullPdb.ps1

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Copyright (c) Microsoft. All rights reserved.
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
24
# Portable to Full PDB conversion script for Test Platform.
35

46
[CmdletBinding()]

scripts/verify-sign.ps1

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Copyright (c) Microsoft. All rights reserved.
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
24
# Build script for Test Platform.
35

46
[CmdletBinding()]

scripts/write-release-notes.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
14
[CmdletBinding()]
25
param
36
(

src/TestFramework/Extension.WinUI/Extension.WinUI.csproj

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
2121
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
2222
</PropertyGroup>
23+
24+
<ItemGroup>
25+
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.18362.16" />
26+
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" TargetingPackVersion="10.0.18362.16" />
27+
</ItemGroup>
2328

2429
<ItemGroup>
2530
<ProjectReference Include="$(RepoRoot)src\TestFramework\MSTest.Core\MSTest.Core.csproj" />

test/E2ETests/Automation.CLI/CLITestBase.common.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public partial class CLITestBase
1717
private const string PackagesFolder = "packages";
1818

1919
// This value is automatically updated by "build.ps1" script.
20-
private const string TestPlatformCLIPackage = @"Microsoft.TestPlatform\17.0.0-preview-20210520-02";
20+
private const string TestPlatformCLIPackage = @"Microsoft.TestPlatform\17.0.0-preview-20210624-09";
2121
private const string VstestConsoleRelativePath = @"tools\net451\Common7\IDE\Extensions\TestPlatform\vstest.console.exe";
2222

2323
/// <summary>

0 commit comments

Comments
 (0)