Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

chore: fix netcore install steps for various deployment stages #1196

Merged
merged 2 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions build/yaml/templates/component-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ stages:
- job: build_test_dotnet
displayName: Build and test .csproj with dotnet
steps:
- template: dotnet-install-sdk-steps.yml
- template: dotnet-build-test-steps.yml

- stage: stage_package_nuget
Expand All @@ -44,7 +43,6 @@ stages:
condition: eq(variables.ComponentType, 'codeExtension')
steps:
- template: nuget-versioning-steps.yml
- template: dotnet-install-sdk-steps.yml
- template: dotnet-package-steps.yml
- template: nuget-signing-steps.yml
- job: job_pack_nuspec
Expand Down
10 changes: 10 additions & 0 deletions build/yaml/templates/dotnet-build-test-steps.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 2.1.x'
inputs:
version: 2.1.x

- task: UseDotNet@2
displayName: 'Use .Net Core sdk 3.1.x'
inputs:
version: 3.1.x

- task: DotNetCoreCLI@2
displayName: 'Run `dotnet restore`'
inputs:
Expand Down
10 changes: 0 additions & 10 deletions build/yaml/templates/dotnet-install-sdk-steps.yml

This file was deleted.

5 changes: 5 additions & 0 deletions build/yaml/templates/dotnet-package-steps.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 2.1.x'
inputs:
version: 2.1.x

- task: DotNetCoreCLI@2
displayName: 'Run `dotnet publish`'
inputs:
Expand Down
5 changes: 0 additions & 5 deletions build/yaml/templates/nuget-signing-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# Extra steps are required to sign the binaries of the code extensions.

steps:
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 2.1.x'
inputs:
version: 2.1.x

- task: CopyFiles@2
displayName: 'Copy packages to Signing'
inputs:
Expand Down