Skip to content

Commit 3d827a6

Browse files
committed
Added SDK intall script
1 parent aad795f commit 3d827a6

File tree

5 files changed

+44
-3
lines changed

5 files changed

+44
-3
lines changed

scripts/Install-WindowsSDK.ps1

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
function Write-Log ([string] $message, $messageColor = "Green") {
5+
$currentColor = $Host.UI.RawUI.ForegroundColor
6+
$Host.UI.RawUI.ForegroundColor = $messageColor
7+
if ($message) {
8+
Write-Output "... $message"
9+
}
10+
$Host.UI.RawUI.ForegroundColor = $currentColor
11+
}
12+
13+
Push-Location
14+
try {
15+
Write-Log "Downloading the Windows SDK 10.0.14393.795..."
16+
Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=838916 -OutFile sdksetup.exe -UseBasicParsing
17+
18+
Write-Log "Installing the Windows SDK, setup might request elevation please approve."
19+
$process = Start-Process -Wait sdksetup.exe -ArgumentList "/quiet", "/norestart", "/ceip off", "/features OptionId.WindowsSoftwareDevelopmentKit" -PassThru
20+
Remove-Item sdksetup.exe -Force
21+
22+
if($process.ExitCode -eq 0)
23+
{
24+
Write-Log "Done"
25+
}
26+
else
27+
{
28+
Write-Log "Failed (Exit code: $($process.ExitCode))" -messageColor "Red"
29+
}
30+
}
31+
finally {
32+
Pop-Location
33+
}
34+

scripts/PortableToFullPdb.ps1

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 0 deletions
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
(

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

Lines changed: 1 addition & 1 deletion
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)