Skip to content

Commit

Permalink
Update AspNetCore pipeline to include building analyzer package (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
surgupta-msft authored Nov 7, 2023
1 parent d9ba59b commit 5afdc0e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions build/AspNetCore.slnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"solution": {
"path": "..\\DotNetWorker.sln",
"projects": [
"extensions\\Worker.Extensions.Http.AspNetCore\\src\\Worker.Extensions.Http.AspNetCore.csproj",
"extensions\\Worker.Extensions.Http.AspNetCore.Analyzers\\Worker.Extensions.Http.AspNetCore.Analyzers.csproj"
]
}
}
9 changes: 8 additions & 1 deletion build/pipelines/templates/extensions-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ parameters:
displayName: Run Extension Tests?
type: boolean
default: false
- name: Solution
type: string
default: not-specified

jobs:
- job: "Build_And_Test_Windows"
Expand Down Expand Up @@ -80,7 +83,11 @@ jobs:
command: 'custom'
custom: 'pack'
arguments: '--no-build -c Release -o packages -p:BuildNumber=$(buildNumber) -p:IsLocalBuild=False'
projects: ${{ parameters.ExtensionDirectory }}/src/*.csproj
${{if parameters.Solution}}:
projects: |
**\${{ parameters.Solution }}
${{ else }}:
projects: ${{ parameters.ExtensionDirectory }}/src/*.csproj

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
displayName: 'ESRP CodeSigning: Nupkg'
Expand Down
1 change: 1 addition & 0 deletions extensions/Worker.Extensions.Http.AspNetCore/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ extends:
template: ../../build/pipelines/templates/extensions-ci.yml
parameters:
ExtensionDirectory: extensions/Worker.Extensions.Http.AspNetCore
Solution: AspNetCore.slnf
RunExtensionTests: true

0 comments on commit 5afdc0e

Please sign in to comment.