fix(dotnet): Don't treat folder with .sln file as a .NET project (#2785)

* Don't treat folder with .sln file as a .NET project

* Update docs for .NET detect_extensions changes
This commit is contained in:
Rumia
2021-06-05 22:18:34 +08:00
committed by GitHub
parent 14a2ada1ee
commit 5edaa90d67
3 changed files with 3 additions and 7 deletions
+1 -2
View File
@@ -839,7 +839,6 @@ the following files are present in the current directory:
- `Directory.Build.props`
- `Directory.Build.targets`
- `Packages.props`
- `*.sln`
- `*.csproj`
- `*.fsproj`
- `*.xproj`
@@ -863,7 +862,7 @@ when there is a csproj file in the current directory.
| `version_format` | `"v${raw}"` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `".NET "` | The symbol used before displaying the version of dotnet. |
| `heuristic` | `true` | Use faster version detection to keep starship snappy. |
| `detect_extensions` | `["sln", "csproj", "fsproj", "xproj"]` | Which extensions should trigger this module. |
| `detect_extensions` | `["csproj", "fsproj", "xproj"]` | Which extensions should trigger this module. |
| `detect_files` | `["global.json", "project.json", "Directory.Build.props", "Directory.Build.targets", "Packages.props"]` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this modules. |
| `style` | `"bold blue"` | The style for the module. |