Skip to content

Add variable to enable path promotion#9418

Merged
jonfortescue merged 2 commits intodotnet:mainfrom
jonfortescue:AddPathPromotionEnableVariable
May 20, 2022
Merged

Add variable to enable path promotion#9418
jonfortescue merged 2 commits intodotnet:mainfrom
jonfortescue:AddPathPromotionEnableVariable

Conversation

@jonfortescue
Copy link
Contributor

Quick fix to be able to enable path promotion by simply setting a variable rather than having to call the script directly.

To double check:

@jonfortescue jonfortescue self-assigned this May 20, 2022
MattGal
MattGal previously approved these changes May 20, 2022
}
}
if (Test-Path variable:NativeToolsOnMachine) {
$nativeArgs += @{ PathPromotion = $true }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this log anywhere that it happened?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, i'll make it log that more explicitly

@jonfortescue jonfortescue merged commit 7e7a0a5 into dotnet:main May 20, 2022
@jonfortescue jonfortescue deleted the AddPathPromotionEnableVariable branch May 20, 2022 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants