mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-21 08:00:22 +00:00
Update README.md
Add multi framework example
This commit is contained in:
parent
e3ce4164b3
commit
53b9c43ec3
16
README.md
16
README.md
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user