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

Commit

Permalink
fix: Install .NET Core SDK for '.NET: Version, Sign & Pack' CI/CD pip…
Browse files Browse the repository at this point in the history
…eline stage (#1078)

* Removing reference to non-existant .editorconfig file from Microsoft.Bot.Components.sln; updating CI/CD pipeline to install .NET Core SDK for job 'job_pack_dotnet' to prevent defaulting to .NET 5.

* Adding 'steps:' back to dotnet-build-test-steps.yml.
  • Loading branch information
peterinnesmsft authored May 5, 2021
1 parent 89ec8b8 commit 4a4bfe4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
2 changes: 2 additions & 0 deletions build/yaml/templates/component-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ 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 @@ -41,6 +42,7 @@ 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: 0 additions & 10 deletions build/yaml/templates/dotnet-build-test-steps.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
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: 10 additions & 0 deletions build/yaml/templates/dotnet-install-sdk-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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
5 changes: 0 additions & 5 deletions packages/Microsoft.Bot.Components.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Bot.Components.Ad
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Bot.Components.Teams", "Teams\dotnet\Microsoft.Bot.Components.Teams.csproj", "{FD29CBA6-C18F-498B-9F00-A3C34C1BEC5F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D20741C5-65FD-45BF-98A1-5A82D290743F}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit 4a4bfe4

Please # to comment.