-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 #101832 from carlossanlop/release/8.0-staging
[manual] Merge release/8.0-staging into release/8.0
- Loading branch information
Showing
119 changed files
with
1,817 additions
and
927 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
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
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,65 @@ | ||
<# | ||
.PARAMETER ArchiveRunName | ||
Name of the run for vs logs | ||
.NOTES | ||
Returns 0 if succeeds, 1 otherwise | ||
#> | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param ( | ||
[Parameter(Mandatory=$True)] | ||
[string] $ArchiveRunName | ||
) | ||
|
||
. $PSScriptRoot/common/tools.ps1 | ||
|
||
$ProgressPreference = "SilentlyContinue" | ||
$LogDir = Join-Path $LogDir $ArchiveRunName | ||
mkdir $LogDir | ||
|
||
$vscollect_uri="http://aka.ms/vscollect.exe" | ||
$vscollect="$env:TEMP\vscollect.exe" | ||
|
||
if (-not (Test-Path $vscollect)) { | ||
Retry({ | ||
Write-Host "GET $vscollect_uri" | ||
Invoke-WebRequest $vscollect_uri -OutFile $vscollect -UseBasicParsing | ||
}) | ||
|
||
if (-not (Test-Path $vscollect)) { | ||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Unable to download vscollect." | ||
exit 1 | ||
} | ||
} | ||
|
||
&"$vscollect" | ||
Move-Item $env:TEMP\vslogs.zip "$LogDir" | ||
|
||
$vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" | ||
if (-not (Test-Path -Path "$vswhere" -PathType Leaf)) | ||
{ | ||
Write-Error "Couldn't locate vswhere at $vswhere" | ||
exit 1 | ||
} | ||
|
||
&"$vswhere" -all -prerelease -products * | Tee-Object -FilePath "$LogDir\vs_where.log" | ||
|
||
$vsdir = &"$vswhere" -latest -prerelease -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath | ||
|
||
if (-not (Test-Path $vsdir)) | ||
{ | ||
$procDumpDir = Join-Path $ToolsDir "procdump" | ||
$procDumpToolPath = Join-Path $procDumpDir "procdump.exe" | ||
$procdump_uri = "https://download.sysinternals.com/files/Procdump.zip" | ||
|
||
if (-not (Test-Path $procDumpToolPath)) { | ||
Retry({ | ||
Write-Host "GET $procdump_uri" | ||
Invoke-WebRequest $procdump_uri -OutFile "$TempDir\Procdump.zip" -UseBasicParsing | ||
}) | ||
|
||
Expand-Archive -Path "$TempDir\Procdump.zip" $procDumpDir | ||
} | ||
|
||
&"$procDumpToolPath" -ma -accepteula VSIXAutoUpdate.exe "$LogDir" | ||
} |
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,23 @@ | ||
schtasks /change /tn "\Microsoft\VisualStudio\VSIX Auto Update" /disable | ||
|
||
$vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" | ||
if (-not (Test-Path -Path "$vswhere" -PathType Leaf)) | ||
{ | ||
Write-Error "Couldn't locate vswhere at $vswhere" | ||
exit 1 | ||
} | ||
|
||
$vsdir = &"$vswhere" -latest -prerelease -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath | ||
$vsregedit = "$vsdir\Common7\IDE\VsRegEdit.exe" | ||
|
||
if (-not (Test-Path -Path "$vsregedit" )) | ||
{ | ||
Write-Error "VSWhere returned path: $vsdir, but regedit $vsregedit doesn't exist." | ||
exit 1 | ||
} | ||
|
||
Write-Output "VSWhere returned path: $vsdir, using regedit $vsregedit" | ||
Write-Output "Disabling updates through VS Registry:" | ||
|
||
&"$vsdir\Common7\IDE\VsRegEdit.exe" set local HKCU ExtensionManager AutomaticallyCheckForUpdates2Override dword 0 | ||
&"$vsdir\Common7\IDE\VsRegEdit.exe" read local HKCU ExtensionManager AutomaticallyCheckForUpdates2Override dword |
This file was deleted.
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
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
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
Oops, something went wrong.