-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2429 from microsoft/staging
Release - 3/18/24
- Loading branch information
Showing
771 changed files
with
27,828 additions
and
1,909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-72.5 KB
CoreWidgetProvider/Widgets/Assets/screenshots/MemoryScreenshotDark.png
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
|
||
powershell -ExecutionPolicy Unrestricted -NoLogo -NoProfile -File %~dp0\BuildDevSetupAgentHelper.ps1 %* | ||
|
||
exit /b %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
Param( | ||
[string]$Platform = "x64", | ||
[string]$Configuration = "debug", | ||
[string]$VersionOfSDK, | ||
[string]$SDKNugetSource, | ||
[string]$Version, | ||
[string]$BuildStep = "all", | ||
[string]$AzureBuildingBranch = "main", | ||
[bool]$IsAzurePipelineBuild = $false, | ||
[switch]$BypassWarning = $false, | ||
[switch]$Help = $false | ||
) | ||
|
||
$StartTime = Get-Date | ||
|
||
if ($Help) { | ||
Write-Host @" | ||
Copyright (c) Microsoft Corporation. | ||
Licensed under the MIT License. | ||
Syntax: | ||
BuildDevSetupAgentHelper.cmd [options] | ||
Description: | ||
Builds DevSetupAgent. | ||
Options: | ||
-Platform <platform> | ||
Only build the selected platform(s) | ||
Example: -Platform x64 | ||
Example: -Platform "x86,x64,arm64" | ||
-Configuration <configuration> | ||
Only build the selected configuration(s) | ||
Example: -Configuration Release | ||
Example: -Configuration "Debug,Release" | ||
-Help | ||
Display this usage message. | ||
"@ | ||
Exit | ||
} | ||
|
||
if (-not $BypassWarning) { | ||
Write-Host @" | ||
This script is not meant to be run directly. To build DevSetupAgent, please run the following from the root directory: | ||
build -BuildStep "DevSetupAgent" | ||
"@ -ForegroundColor RED | ||
Exit | ||
} | ||
|
||
$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator') | ||
|
||
$ErrorActionPreference = "Stop" | ||
|
||
$msbuildPath = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe | ||
if ($IsAzurePipelineBuild) { | ||
$nugetPath = "nuget.exe"; | ||
} else { | ||
$nugetPath = (Join-Path $env:Build_RootDirectory "build\NugetWrapper.cmd") | ||
} | ||
|
||
if (-not([string]::IsNullOrWhiteSpace($SDKNugetSource))) { | ||
& $nugetPath sources add -Source $SDKNugetSource | ||
} | ||
|
||
Try { | ||
$buildRing = "Dev" | ||
|
||
if ($AzureBuildingBranch -ieq "release") { | ||
$buildRing = "Stable" | ||
} elseif ($AzureBuildingBranch -ieq "staging") { | ||
$buildRing = "Canary" | ||
} | ||
|
||
Write-Host $nugetPath | ||
|
||
& $nugetPath restore | ||
|
||
$msbuildArgs = @( | ||
("HyperVExtension\DevSetupAgent.sln"), | ||
("/p:Platform="+$platform), | ||
("/p:Configuration="+$configuration), | ||
("/restore"), | ||
("/binaryLogger:DevSetupAgent.$platform.$configuration.binlog"), | ||
("/p:BuildRing=$buildRing") | ||
) | ||
if (-not([string]::IsNullOrWhiteSpace($VersionOfSDK))) { | ||
$msbuildArgs += ("/p:DevHomeSDKVersion="+$env:sdk_version) | ||
} | ||
|
||
& $msbuildPath $msbuildArgs | ||
|
||
$binariesOutputPath = (Join-Path $env:Build_RootDirectory "HyperVExtension\src\DevSetupAgent\bin\$Platform\$Configuration\net8.0-windows10.0.22000.0\win10-$Platform\*") | ||
$zipOutputPath = (Join-Path $env:Build_RootDirectory "HyperVExtension\src\DevSetupAgent\bin\$Platform\$Configuration\DevSetupAgent_$Platform.zip") | ||
|
||
Compress-Archive -Force -Path $binariesOutputPath $zipOutputPath | ||
} Catch { | ||
$formatString = "`n{0}`n`n{1}`n`n" | ||
$fields = $_, $_.ScriptStackTrace | ||
Write-Host ($formatString -f $fields) -ForegroundColor RED | ||
Exit 1 | ||
} | ||
|
||
$TotalTime = (Get-Date)-$StartTime | ||
$TotalMinutes = [math]::Floor($TotalTime.TotalMinutes) | ||
$TotalSeconds = [math]::Ceiling($TotalTime.TotalSeconds) | ||
|
||
Write-Host @" | ||
Total Running Time: | ||
$TotalMinutes minutes and $TotalSeconds seconds | ||
"@ -ForegroundColor CYAN |
Oops, something went wrong.