@@ -13,44 +13,21 @@ schedules:
1313 - main
1414
1515pool :
16- vmImage : ' windows-2019 '
16+ vmImage : ' windows-latest '
1717
1818variables :
19- - name : LGTM.SnapshotIdentifiers
20- value : Build=Full
21- - name : LGTM.SnapshotMetadata
22- value : Owner=MDoc
23- - name : LGTM.UploadSnapshot
24- value : true
25- - name : Semmle.SkipAnalysis
26- value : true
27- - name : buildConfiguration
28- value : Release
29- - name : msbuild
30- value : ' C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe'
31-
32- steps :
33- - task : NuGetToolInstaller@1
34- displayName : Install NuGet Tool
19+ Codeql.Enabled : true
20+ solution : ' apidoctools.sln'
21+ buildConfiguration : ' Release'
3522
36- - task : NuGetCommand@2
37- displayName : NuGet restore
23+ steps :
24+ - task : CmdLine@2
25+ displayName : make prepare
3826 inputs :
39- command : ' restore'
40- restoreSolution : ' **/*.sln'
41- feedsToUse : ' config'
27+ script : ' make prepare'
4228
43- - task : Semmle@0
44- displayName : Security - LGTM
45- env :
46- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
29+ - task : MSBuild@1
30+ displayName : MSBuild
4731 inputs :
48- toolVersion : ' LatestPreRelease'
49- sourceCodeDirectory : ' $(Build.SourcesDirectory)'
50- language : ' csharp'
51- cleanupBuildCommands : ' dotnet clean apidoctools.sln --configuration $(buildConfiguration)'
52- buildCommands : ' "$(msbuild)" apidoctools.sln /p:Configuration=$(buildConfiguration)'
53- querySuite : ' Required'
54- timeout : ' 7200'
55- ram : ' 16384'
56- addProjectDirToScanningExclusionList : true
32+ solution : ' $(solution)'
33+ configuration : ' $(buildConfiguration)'
0 commit comments