You've already forked setup-dotnet
							
							
				mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-11-04 08:56:35 +07:00 
			
		
		
		
	Include useful environment variables in the README
This commit is contained in:
		
							
								
								
									
										17
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								README.md
									
									
									
									
									
								
							@ -69,6 +69,23 @@ steps:
 | 
			
		||||
  run: dotnet nuget push <my project>/bin/Release/*.nupkg
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Environment Variables to use with dotnet
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
- DOTNET_NOLOGO - removes logo and telemetry message from first run of dotnet cli (default: false)
 | 
			
		||||
- DOTNET_CLI_TELEMETRY_OPTOUT - opt-out of telemetry being sent to Microsoft (default: false)
 | 
			
		||||
- DOTNET_MULTILEVEL_LOOKUP - configures whether the global install location is used as a fall-back (default: true)
 | 
			
		||||
 | 
			
		||||
Example usage:
 | 
			
		||||
```
 | 
			
		||||
- uses: actions/setup-dotnet@v1
 | 
			
		||||
  with:
 | 
			
		||||
    dotnet-version: '3.1.100' # SDK Version to use.
 | 
			
		||||
  env:
 | 
			
		||||
    DOTNET_NOLOGO: true
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# License
 | 
			
		||||
 | 
			
		||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user