Skip to content

Commit 9e45db0

Browse files
authored
Merge pull request #21729 from timheuer/patch-2
Updating snippets to latest dotnet
2 parents 2213e5d + 4e54a31 commit 9e45db0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/actions/automating-builds-and-tests/building-and-testing-net.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ubuntu-latest
4646
strategy:
4747
matrix:
48-
dotnet-version: ['3.0', '3.1.x', '5.0.x' ]
48+
dotnet-version: [ '3.1.x', '6.0.x' ]
4949

5050
steps:
5151
- uses: {% data reusables.actions.action-checkout %}
@@ -80,7 +80,7 @@ jobs:
8080
runs-on: ubuntu-latest
8181
strategy:
8282
matrix:
83-
dotnet-version: [ '3.0', '3.1.x', '5.0.x' ]
83+
dotnet-version: [ '3.1.x', '6.0.x' ]
8484
8585
steps:
8686
- uses: {% data reusables.actions.action-checkout %}
@@ -98,11 +98,11 @@ jobs:
9898
You can configure your job to use a specific version of .NET, such as `3.1.3`. Alternatively, you can use semantic version syntax to get the latest minor release. This example uses the latest minor release of .NET 3.
9999

100100
```yaml
101-
- name: Setup .NET 3.x
101+
- name: Setup .NET SDK
102102
uses: {% data reusables.actions.action-setup-dotnet %}
103103
with:
104104
# Semantic version range syntax or exact version of a dotnet version
105-
dotnet-version: '3.x'
105+
dotnet-version: '6.0.x'
106106
```
107107

108108
## Installing dependencies
@@ -115,7 +115,7 @@ steps:
115115
- name: Setup dotnet
116116
uses: {% data reusables.actions.action-setup-dotnet %}
117117
with:
118-
dotnet-version: '3.1.x'
118+
dotnet-version: '6.0.x'
119119
- name: Install dependencies
120120
run: dotnet add package Newtonsoft.Json --version 12.0.1
121121
```
@@ -134,7 +134,7 @@ steps:
134134
- name: Setup dotnet
135135
uses: {% data reusables.actions.action-setup-dotnet %}
136136
with:
137-
dotnet-version: '3.1.x'
137+
dotnet-version: '6.0.x'
138138
- uses: {% data reusables.actions.action-cache %}
139139
with:
140140
path: ~/.nuget/packages
@@ -164,7 +164,7 @@ steps:
164164
- name: Setup dotnet
165165
uses: {% data reusables.actions.action-setup-dotnet %}
166166
with:
167-
dotnet-version: '3.1.x'
167+
dotnet-version: '6.0.x'
168168
- name: Install dependencies
169169
run: dotnet restore
170170
- name: Build
@@ -190,7 +190,7 @@ jobs:
190190
runs-on: ubuntu-latest
191191
strategy:
192192
matrix:
193-
dotnet-version: [ '3.0', '3.1.x', '5.0.x' ]
193+
dotnet-version: [ '3.1.x', '6.0.x' ]
194194
195195
steps:
196196
- uses: {% data reusables.actions.action-checkout %}
@@ -232,7 +232,7 @@ jobs:
232232
- uses: {% data reusables.actions.action-checkout %}
233233
- uses: {% data reusables.actions.action-setup-dotnet %}
234234
with:
235-
dotnet-version: '3.1.x' # SDK Version to use.
235+
dotnet-version: '6.0.x' # SDK Version to use.
236236
source-url: https://nuget.pkg.github.com/<owner>/index.json
237237
env:
238238
NUGET_AUTH_TOKEN: {% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %}

0 commit comments

Comments
 (0)