Update README.md

Add multi framework example
This commit is contained in:
Zoltan Csizmadia 2021-11-09 13:40:17 -06:00 committed by GitHub
parent e3ce4164b3
commit 53b9c43ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,22 @@ steps:
- run: dotnet build <my project> - run: dotnet build <my project>
``` ```
Multiple versions:
```yaml
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x' # Use the latest version of the 3.1 channel
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x' # Use the latest version of the 5.0 channel
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x' # Use the latest version of the 6.0 channel
- run: dotnet build <my project>
```
Preview version: Preview version:
```yml ```yml
steps: steps: