@@ -27,13 +27,26 @@ extends:
2727 platform :
2828 name : ' windows_undocked'
2929 product : ' build_tools'
30+
31+ featureFlags :
32+ WindowsHostVersion :
33+ Version : 2022
3034
3135 cloudvault :
3236 enabled : false
3337
3438 globalSdl :
39+ isNativeCode : true
40+ asyncSdl :
41+ enabled : true
3542 tsa :
36- enabled : false
43+ enabled : true
44+ codeql :
45+ compiled :
46+ enabled : true
47+ tsaEnabled : true
48+ prefast :
49+ enabled : true
3750
3851 stages :
3952 - stage : build
@@ -68,48 +81,6 @@ extends:
6881 ob_createvpack_metadata : $(Build.SourceBranchName).x86.$(Build.BuildNumber).$(Build.SourceVersion)
6982 ob_createvpack_target : $(OSBuildToolsRoot)\cppwinrt
7083
71- steps :
72- - task : UseDotNet@2
73- continueOnError : true
74- inputs :
75- packageType : ' runtime'
76- version : ' 6.x'
77- performMultiLevelLookup : true
78-
79- - task : DownloadPipelineArtifact@2
80- displayName : ' Download x86 artifacts'
81- inputs :
82- artifactName : ' drop_build_x86'
83- targetPath : ' $(Build.SourcesDirectory)/x86'
84-
85- - task : CopyFiles@2
86- displayName : ' Stage compiler vpack contents'
87- inputs :
88- SourceFolder : $(Build.SourcesDirectory)/x86/cppwinrt
89- Contents : |
90- cppwinrt.exe
91- cppwinrt.pdb
92- TargetFolder : $(ob_outputDirectory)
93-
94- - job : MSBuild_vpack
95- pool :
96- type : windows
97- variables :
98- ob_outputDirectory : ' $(Build.SourcesDirectory)\out'
99-
100- ob_createvpack_enabled : true
101- ob_createvpack_packagename : CppWinRT.MSBuild
102- ob_createvpack_owneralias : cpp4uwpt
103- ob_createvpack_description : C++/WinRT MSBuild
104- ob_createvpack_provData : true
105- ob_createvpack_versionAs : parts
106- ob_createvpack_majorVer : $(MajorVersion)
107- ob_createvpack_minorVer : $(MinorVersion)
108- ob_createvpack_patchVer : $(PatchVersion)
109- ob_createvpack_metadata : $(Build.SourceBranchName).$(Build.BuildNumber).$(Build.SourceVersion)
110- ob_createvpack_verbose : true
111- ob_createvpack_target : $(OSBuildToolsRoot)\cppwinrt
112-
11384 steps :
11485 - task : UseDotNet@2
11586 continueOnError : true
@@ -135,14 +106,21 @@ extends:
135106 inputs :
136107 artifactName : ' drop_build_arm64'
137108 targetPath : ' $(Build.SourcesDirectory)/arm64'
109+
110+ - task : CopyFiles@2
111+ displayName : ' Stage compiler vpack contents'
112+ inputs :
113+ SourceFolder : $(Build.SourcesDirectory)/x86/cppwinrt
114+ Contents : |
115+ cppwinrt.exe
116+ cppwinrt.pdb
117+ TargetFolder : $(ob_outputDirectory)
138118
139119 - task : CmdLine@2
140120 displayName : ' Stage MSBuild vpack contents'
141121 inputs :
142122 script : |
143123 set TargetDir=$(ob_outputDirectory)
144- rd /s /q %TargetDir% >nul 2>&1
145- md %TargetDir%
146124 cd %TargetDir%
147125
148126 copy $(Build.SourcesDirectory)\vsix\Microsoft.Cpp.CppWinRT.props
@@ -154,7 +132,7 @@ extends:
154132 echo d | xcopy $(Build.SourcesDirectory)\x64\cppwinrt_fast_forwarder.lib build\native\lib\amd64
155133 echo d | xcopy $(Build.SourcesDirectory)\x64\cppwinrt_fast_forwarder.lib build\native\lib\x64
156134 echo d | xcopy $(Build.SourcesDirectory)\arm64\cppwinrt_fast_forwarder.lib build\native\lib\arm64
157-
135+
158136 - stage : NuGet
159137 dependsOn : build
160138 jobs :
0 commit comments