diff --git a/.pipelines/OneBranch.Official.yml b/.pipelines/OneBranch.Official.yml index 531076f3f..552ec761b 100644 --- a/.pipelines/OneBranch.Official.yml +++ b/.pipelines/OneBranch.Official.yml @@ -27,6 +27,10 @@ extends: platform: name: 'windows_undocked' product: 'build_tools' + + featureFlags: + WindowsHostVersion: + Version: 2022 cloudvault: enabled: false @@ -117,8 +121,6 @@ extends: inputs: script: | set TargetDir=$(ob_outputDirectory) - rd /s /q %TargetDir% >nul 2>&1 - md %TargetDir% cd %TargetDir% copy $(Build.SourcesDirectory)\vsix\Microsoft.Cpp.CppWinRT.props diff --git a/.pipelines/OneBranch.PullRequest.yml b/.pipelines/OneBranch.PullRequest.yml index b5b358702..bc08bbddf 100644 --- a/.pipelines/OneBranch.PullRequest.yml +++ b/.pipelines/OneBranch.PullRequest.yml @@ -31,6 +31,10 @@ extends: name: 'windows_undocked' product: 'build_tools' + featureFlags: + WindowsHostVersion: + Version: 2022 + globalSdl: isNativeCode: true tsa: diff --git a/.pipelines/variables/OneBranchVariables.yml b/.pipelines/variables/OneBranchVariables.yml index 8e6ad8af0..ff7a98adb 100644 --- a/.pipelines/variables/OneBranchVariables.yml +++ b/.pipelines/variables/OneBranchVariables.yml @@ -10,7 +10,7 @@ variables: NUGET_XMLDOC_MODE: none # Docker image which is used to build the project https://aka.ms/obpipelines/containers - WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest' + WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest' Codeql.Enabled: true # CodeQL once every 3 days on the default branch for all languages its applicable to in that pipeline. GDN_USE_DOTNET: true \ No newline at end of file