blob: dc852252625401918fac4218bbb1846e8a22d40a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
pr: none
trigger: none
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- main
pool:
vmImage: 'windows-2019'
variables:
- name: LGTM.SnapshotIdentifiers
value: Build=Full
- name: LGTM.SnapshotMetadata
value: Owner=MDoc
- name: LGTM.UploadSnapshot
value: true
- name: Semmle.SkipAnalysis
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'
feedsToUse: 'config'
- task: Semmle@0
displayName: Security - LGTM
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
toolVersion: 'LatestPreRelease'
sourceCodeDirectory: '$(Build.SourcesDirectory)'
language: 'csharp'
cleanupBuildCommands: 'dotnet clean apidoctools.sln --configuration $(buildConfiguration)'
buildCommands: '"$(msbuild)" apidoctools.sln /p:Configuration=$(buildConfiguration)'
querySuite: 'Required'
timeout: '7200'
ram: '16384'
addProjectDirToScanningExclusionList: true
|