You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the `dotnet-version` input is used along with the `global-json-file` input, the `dotnet-version` output contains the version resolved from the `global.json`.
180
+
181
+
```yaml
182
+
- uses: actions/setup-dotnet@v3
183
+
id: cp310
184
+
with:
185
+
dotnet-version: |
186
+
3.1.422
187
+
5.0.408
188
+
global-json-file: "./global.json" # contains version 2.2.207
Some environment variables may be necessary for your particular case or to improve logging. Some examples are listed below, but the full list with complete details can be found here: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables
Copy file name to clipboardExpand all lines: action.yml
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,9 @@ inputs:
17
17
description: 'Optional OWNER for using packages from GitHub Package Registry organizations/users other than the current repository''s owner. Only used if a GPR URL is also provided in source-url'
18
18
config-file:
19
19
description: 'Optional NuGet.config location, if your NuGet.config isn''t located in the root of the repo.'
20
+
outputs:
21
+
dotnet-version:
22
+
description: 'Contains the installed by action .NET SDK version for reuse.'
0 commit comments