Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit71af981

Browse files
committed
Add ability to capture MSBuild Binary logs when restore fails (#24128)
* Capture binary logs* Update .pipelines/PowerShell-Coordinated_Packages-Official.yml
1 parent32511eb commit71af981

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎.pipelines/PowerShell-Coordinated_Packages-Official.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ parameters:
2626
displayName:Enable MSBuild Binary Logs
2727
type:boolean
2828
default:false
29+
-name:ENABLE_MSBUILD_BINLOGS
30+
displayName:Enable MSBuild Binary Logs
31+
type:boolean
32+
default:false
2933

3034
resources:
3135
repositories:

‎build.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ function Switch-PSNugetConfig {
763763
}elseif ($Source-eq'NuGetOnly') {
764764
New-NugetConfigFile-NugetPackageSource$nugetorg-Destination"$PSScriptRoot/"@extraParams
765765
New-NugetConfigFile-NugetPackageSource$gallery-Destination"$PSScriptRoot/src/Modules/"@extraParams
766-
New-NugetConfigFile-NugetPackageSource$gallery-Destination"$PSScriptRoot/test/tools/Modules/"@extraParams
766+
New-NugetConfigFile-NugetPackageSource$gallery-Destination"$PSScriptRoot/test/tools/Modules/"@extraParams
767767
}elseif ($Source-eq'Private') {
768768
$powerShellPackages= [NugetPackageSource]@{Url='https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShell/nuget/v3/index.json';Name='powershell' }
769769

@@ -882,7 +882,7 @@ function Restore-PSPackage
882882
$RestoreArguments+="--interactive"
883883
}
884884

885-
if ($env:ENABLE_MSBUILD_BINLOGS-eq'true') {
885+
if ($env:ENABLE_MSBUILD_BINLOGS) {
886886
$RestoreArguments+='-bl'
887887
}
888888

@@ -903,7 +903,7 @@ function Restore-PSPackage
903903
$retryCount++
904904
if($retryCount-ge$maxTries)
905905
{
906-
if ($env:ENABLE_MSBUILD_BINLOGS-eq'true') {
906+
if ($env:ENABLE_MSBUILD_BINLOGS) {
907907
if (Test-Path ./msbuild.binlog ) {
908908
if (!(Test-Path$env:OB_OUTPUTDIRECTORY-PathType Container)) {
909909
$null=New-Item-path$env:OB_OUTPUTDIRECTORY-ItemType Directory-Force-Verbose

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp