Use native tools and update VS (#18525)
This commit is contained in:
parent
ae3f3a87e3
commit
156efab2e4
3 changed files with 4 additions and 4 deletions
|
@ -83,10 +83,10 @@ jobs:
|
||||||
pool:
|
pool:
|
||||||
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
||||||
name: $(DncEngPublicBuildPool)
|
name: $(DncEngPublicBuildPool)
|
||||||
demands: ImageOverride -equals windows.vs2019.amd64.open
|
demands: ImageOverride -equals windows.vs2022.amd64.open
|
||||||
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
${{ if eq(variables['System.TeamProject'], 'internal') }}:
|
||||||
name: $(DncEngInternalBuildPool)
|
name: $(DncEngInternalBuildPool)
|
||||||
demands: ImageOverride -equals windows.vs2019.amd64
|
demands: ImageOverride -equals windows.vs2022.amd64
|
||||||
${{ if eq(parameters.agentOs, 'Linux') }}:
|
${{ if eq(parameters.agentOs, 'Linux') }}:
|
||||||
pool:
|
pool:
|
||||||
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
${{ if eq(variables['System.TeamProject'], 'public') }}:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"native-tools": {
|
"native-tools": {
|
||||||
"cmake": "3.21.0"
|
"cmake": "latest"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24105.3",
|
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24105.3",
|
||||||
|
|
|
@ -32,7 +32,7 @@ if ($Sign) {
|
||||||
$Parameters = "$Parameters -WarnAsError `$$WarnAsError"
|
$Parameters = "$Parameters -WarnAsError `$$WarnAsError"
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$ExpressionToInvoke = "$RepoRoot\eng\common\build.ps1 -restore -build $Parameters $ExtraParameters"
|
$ExpressionToInvoke = "$RepoRoot\eng\common\build.ps1 -restore -build -nativeToolsOnMachine $Parameters $ExtraParameters"
|
||||||
Write-Host "Invoking expression: $ExpressionToInvoke"
|
Write-Host "Invoking expression: $ExpressionToInvoke"
|
||||||
Invoke-Expression $ExpressionToInvoke
|
Invoke-Expression $ExpressionToInvoke
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue