diff options
author | Jeff Chen <59190910+JeffInChrist@users.noreply.github.com> | 2022-01-25 14:21:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 14:21:29 +0300 |
commit | d0f73fe0d6f5b9ad2d2125620f5909369bcf4ef6 (patch) | |
tree | a3b369269630adbfd72ae2a858a5a467f5c43bb2 | |
parent | 025337deab244378953fa65a8f9f928cd01b622a (diff) |
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 <huangmin@microsoft.com>
-rw-r--r-- | azure-pipelines.lgtm.yml | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/azure-pipelines.lgtm.yml b/azure-pipelines.lgtm.yml index 663e8604..dc852252 100644 --- a/azure-pipelines.lgtm.yml +++ b/azure-pipelines.lgtm.yml @@ -13,7 +13,7 @@ schedules: - main pool: - vmImage: 'windows-latest' + vmImage: 'windows-2019' variables: - name: LGTM.SnapshotIdentifiers @@ -26,12 +26,15 @@ variables: value: true - name: buildConfiguration value: Release +- name: msbuild + value: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe' steps: - task: NuGetToolInstaller@1 displayName: Install NuGet Tool - task: NuGetCommand@2 + displayName: NuGet restore inputs: command: 'restore' restoreSolution: '**/*.sln' @@ -45,12 +48,8 @@ steps: toolVersion: 'LatestPreRelease' sourceCodeDirectory: '$(Build.SourcesDirectory)' language: 'csharp' - cleanupBuildCommands: | - dotnet clean mdoc/mdoc.csproj --configuration $(buildConfiguration) - dotnet clean monodoc/monodoc.csproj --configuration $(buildConfiguration) - buildCommands: | - dotnet build mdoc/mdoc.csproj --configuration $(buildConfiguration) - dotnet build monodoc/monodoc.csproj --configuration $(buildConfiguration) + cleanupBuildCommands: 'dotnet clean apidoctools.sln --configuration $(buildConfiguration)' + buildCommands: '"$(msbuild)" apidoctools.sln /p:Configuration=$(buildConfiguration)' querySuite: 'Required' timeout: '7200' ram: '16384' |