Repository that help you install the required version .NET sdk
- name: Setup .NET x sdk version
uses: actions/setup-dotnet@v1
with:
dotnet-version: x.x.x
- .NET 6
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- .NET 5
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- .NET Core 3
- name: Setup .NET Core 3
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.x
name: SonarBuild
on:
push:
branches: [ main ]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- name: Setup .NET x sdk version
uses: actions/setup-dotnet@v1
with:
dotnet-version: x.x.x
# ...
https://github.com/KurnakovMaksim/SonarCloud/blob/main/.github/workflows/build.yml
If I help you, can you give a star for me? :)