1+ # ASP.NET Core (.NET Framework)
2+ # Build and test ASP.NET Core projects targeting the full .NET Framework.
3+ # Add steps that publish symbols, save build artifacts, and more:
4+ # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
5+
6+ trigger :
7+ - ' *'
8+
9+ name : $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.r)
10+
11+ pool :
12+ vmImage : ' macos-latest'
13+
14+ variables :
15+ mdocPath : ' bin/$(buildConfiguration)'
16+
17+ steps :
18+ - task : NuGetToolInstaller@1
19+ displayName : Install NuGet Tool
20+
21+ - task : Bash@3
22+ displayName : Run Unit and Integration Tests
23+ inputs :
24+ targetType : ' inline'
25+ script : ' make prepare all check CONFIGURATION=$(buildConfiguration)'
26+
27+ - task : EsrpCodeSigning@1
28+ displayName : Sign executable and dll files
29+ condition : and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
30+ inputs :
31+ ConnectedServiceName : ' CodeSigning-APEX'
32+ FolderPath : ' $(mdocPath)'
33+ UseMinimatch : true
34+ signConfigType : inlineSignParams
35+ SessionTimeout : ' 60'
36+ MaxConcurrency : ' 100'
37+ MaxRetryAttempts : ' 5'
38+ Pattern : |
39+ *.dll
40+ *.exe
41+ inlineOperation : |
42+ [
43+ {
44+ "KeyCode": "CP-236167",
45+ "OperationSetCode": "SigntoolSign",
46+ "parameters": [
47+ {
48+ "parameterName": "OpusName",
49+ "parameterValue": "Microsoft"
50+ },
51+ {
52+ "parameterName": "OpusInfo",
53+ "parameterValue": "http://www.microsoft.com"
54+ },
55+ {
56+ "parameterName": "PageHash",
57+ "parameterValue": "/NPH"
58+ },
59+ {
60+ "parameterName": "TimeStamp",
61+ "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
62+ },
63+ {
64+ "parameterName": "FileDigest",
65+ "parameterValue": "/fd \"SHA256\""
66+ }
67+ ],
68+ "ToolName": "sign",
69+ "ToolVersion": "1.0"
70+ },
71+ {
72+ "KeyCode": "CP-236167",
73+ "OperationSetCode": "SigntoolVerify",
74+ "Parameters": [
75+ {
76+ "parameterName": "VerifyAll",
77+ "parameterValue": "/all"
78+ }
79+ ],
80+ "ToolName": "sign",
81+ "ToolVersion": "1.0"
82+ }
83+ ]
84+
85+ - task : ArchiveFiles@2
86+ displayName : Archive mdoc Files
87+ inputs :
88+ rootFolderOrFile : ' $(mdocPath)'
89+ includeRootFolder : false
90+ archiveType : ' zip'
91+ archiveFile : ' $(Build.ArtifactStagingDirectory)/zips/mdoc-$(Build.BuildNumber).zip'
92+ replaceExistingArchive : true
93+
94+ - task : PublishBuildArtifacts@1
95+ displayName : ' Publish mdoc Artifact'
96+ inputs :
97+ PathtoPublish : ' $(Build.ArtifactStagingDirectory)/zips'
98+ ArtifactName : ' mdoc.Artifact'
0 commit comments