Skip to content

Commit d0f73fe

Browse files
Fixed LGTM pipeline (#600)
* LGTM testing * Fixed lgtm tasks (#599) Switched to msbuild and fixed LGTM tasks. * Update azure-pipelines.lgtm.yml for Azure Pipelines Fixed syntax errors * Update azure-pipelines.lgtm.yml for Azure Pipelines * Locating msbuild for LGTM * update msbuild * Update * Update msbuild * msbuild binary * Update azure-pipelines.lgtm.yml for Azure Pipelines * Stick to windows-2019 for CodeQL Windows-2022 is coming out but CodeQL is not supported. Co-authored-by: Min Huang <[email protected]>
1 parent 025337d commit d0f73fe

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

azure-pipelines.lgtm.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ schedules:
1313
- main
1414

1515
pool:
16-
vmImage: 'windows-latest'
16+
vmImage: 'windows-2019'
1717

1818
variables:
1919
- name: LGTM.SnapshotIdentifiers
@@ -26,12 +26,15 @@ variables:
2626
value: true
2727
- name: buildConfiguration
2828
value: Release
29+
- name: msbuild
30+
value: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe'
2931

3032
steps:
3133
- task: NuGetToolInstaller@1
3234
displayName: Install NuGet Tool
3335

3436
- task: NuGetCommand@2
37+
displayName: NuGet restore
3538
inputs:
3639
command: 'restore'
3740
restoreSolution: '**/*.sln'
@@ -45,12 +48,8 @@ steps:
4548
toolVersion: 'LatestPreRelease'
4649
sourceCodeDirectory: '$(Build.SourcesDirectory)'
4750
language: 'csharp'
48-
cleanupBuildCommands: |
49-
dotnet clean mdoc/mdoc.csproj --configuration $(buildConfiguration)
50-
dotnet clean monodoc/monodoc.csproj --configuration $(buildConfiguration)
51-
buildCommands: |
52-
dotnet build mdoc/mdoc.csproj --configuration $(buildConfiguration)
53-
dotnet build monodoc/monodoc.csproj --configuration $(buildConfiguration)
51+
cleanupBuildCommands: 'dotnet clean apidoctools.sln --configuration $(buildConfiguration)'
52+
buildCommands: '"$(msbuild)" apidoctools.sln /p:Configuration=$(buildConfiguration)'
5453
querySuite: 'Required'
5554
timeout: '7200'
5655
ram: '16384'

0 commit comments

Comments
 (0)