2020-10-16 08:43:02 -07:00
|
|
|
---
|
|
|
|
id: dotnet
|
|
|
|
title: Dotnet
|
|
|
|
sidebar_label: Dotnet
|
|
|
|
---
|
|
|
|
|
|
|
|
## What
|
|
|
|
|
2021-02-03 23:38:55 -08:00
|
|
|
Display the currently active .NET SDK version.
|
2020-10-16 08:43:02 -07:00
|
|
|
|
|
|
|
## Sample Configuration
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type": "dotnet",
|
|
|
|
"style": "powerline",
|
|
|
|
"powerline_symbol": "",
|
|
|
|
"foreground": "#000000",
|
|
|
|
"background": "#00ffff",
|
|
|
|
"properties": {
|
|
|
|
"prefix": " \uE77F "
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
2021-07-31 07:54:25 -07:00
|
|
|
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
2020-10-16 08:43:02 -07:00
|
|
|
- display_version: `boolean` - display the active version or not; useful if all you need is an icon indicating `dotnet`
|
|
|
|
is present - defaults to `true`
|
2021-02-14 03:45:06 -08:00
|
|
|
- display_error: `boolean` - show the error context when failing to retrieve the version information - defaults to `true`
|
2020-12-31 22:15:19 -08:00
|
|
|
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
2021-01-22 09:44:40 -08:00
|
|
|
- display_mode: `string` - determines when the segment is displayed
|
2021-02-03 23:38:55 -08:00
|
|
|
- `always`: the segment is always displayed
|
2021-10-16 22:56:15 -07:00
|
|
|
- `files`: the segment is only displayed when `*.cs`, `*.vb`, `*.fs`, `*.fsx`, `*.sln`, `*.csproj`, `*.vbproj`,
|
|
|
|
or `*.fsproj` files are present (default)
|
2020-10-16 08:43:02 -07:00
|
|
|
- unsupported_version_icon: `string` - text/icon that is displayed when the active .NET SDK version (e.g., one specified
|
2020-12-27 23:33:58 -08:00
|
|
|
by `global.json`) is not installed/supported - defaults to `\uf071` (X in a rectangle box)
|