Skip to content

Commit

Permalink
use .NET 9.0 in CI/CD pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenkirstaetter committed Nov 4, 2024
1 parent f0a1ddf commit 5689e3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
dotnet-version: ['8.x']
dotnet-version: ['9.x']
runs-on: ${{ matrix.os }}

# permissions:
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:
- task: UseDotNet@2
displayName: 'Install .NET SDK'
inputs:
version: 8.x
version: 9.x
performMultiLevelLookup: true
includePreviewVersions: true # Required for preview versions

Expand Down
18 changes: 9 additions & 9 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# outline the steps to build a .NET project, pack it as Nuget package and push it to Nuget source feed
steps:
# Build the projects
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Build for .NET
entrypoint: 'dotnet'
args: ['build', '-c', 'Release', 'src/Mscc.GenerativeAI/Mscc.GenerativeAI.csproj']
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Build for ASP.NET Core
entrypoint: 'dotnet'
args: ['build', '-c', 'Release', 'src/Mscc.GenerativeAI.Web/Mscc.GenerativeAI.Web.csproj']
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Build for .NET using Google Cloud Client Library
entrypoint: 'dotnet'
args: ['build', '-c', 'Release', 'src/Mscc.GenerativeAI.Google/Mscc.GenerativeAI.Google.csproj']
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Build for Microsoft.Extension.AI and Microsoft Semantic Kernel
entrypoint: 'dotnet'
args: ['build', '-c', 'Release', 'src/Mscc.GenerativeAI.Microsoft/Mscc.GenerativeAI.Microsoft.csproj']

# Pack the NuGet packages
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Pack for .NET
entrypoint: 'dotnet'
args: ['pack', '-c', 'Release', 'src/Mscc.GenerativeAI/Mscc.GenerativeAI.csproj', '-o', 'output/']
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Pack for ASP.NET Core
entrypoint: 'dotnet'
args: ['pack', '-c', 'Release', 'src/Mscc.GenerativeAI.Web/Mscc.GenerativeAI.Web.csproj', '-o', 'output/']
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Pack for .NET using Google Cloud Client Library
entrypoint: 'dotnet'
args: ['pack', '-c', 'Release', 'src/Mscc.GenerativeAI.Google/Mscc.GenerativeAI.Google.csproj', '-o', 'output/']
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Pack for Microsoft.Extension.AI and Microsoft Semantic Kernel
entrypoint: 'dotnet'
args: ['pack', '-c', 'Release', 'src/Mscc.GenerativeAI.Microsoft/Mscc.GenerativeAI.Microsoft.csproj', '-o', 'output/']

# Push the packages to NuGet source feed
- name: 'mcr.microsoft.com/dotnet/sdk:8.0'
- name: 'mcr.microsoft.com/dotnet/sdk:9.0'
id: Push
entrypoint: 'dotnet'
args: ['nuget', 'push', 'output/*.nupkg', '--skip-duplicate', '-s', 'https://api.nuget.org/v3/index.json', '-k', '${_NUGET_API_KEY}']
Expand Down

0 comments on commit 5689e3b

Please sign in to comment.