mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat(dotnet): adds additional files to detect .net projects (#1303)
* adds additional files to detect .net projects * test .net output with a regex pattern
This commit is contained in:
+13
-3
@@ -460,9 +460,19 @@ The `dotnet` module shows the relevant version of the .NET Core SDK for the curr
|
||||
the SDK has been pinned in the current directory, the pinned version is shown. Otherwise the module
|
||||
shows the latest installed version of the SDK.
|
||||
|
||||
This module will only be shown in your prompt when one of the following files are present in the
|
||||
current directory: `global.json`, `project.json`, `*.sln`, `*.csproj`, `*.fsproj`, `*.xproj`. You'll
|
||||
also need the .NET Core command-line tools installed in order to use it correctly.
|
||||
This module will only be shown in your prompt when one or more of the following files are present in the
|
||||
current directory:
|
||||
* `global.json`
|
||||
* `project.json`
|
||||
* `Directory.Build.props`
|
||||
* `Directory.Build.targets`
|
||||
* `Packages.props`
|
||||
* `*.sln`
|
||||
* `*.csproj`
|
||||
* `*.fsproj`
|
||||
* `*.xproj`
|
||||
|
||||
You'll also need the .NET Core SDK installed in order to use it correctly.
|
||||
|
||||
Internally, this module uses its own mechanism for version detection. Typically it is twice as fast
|
||||
as running `dotnet --version`, but it may show an incorrect version if your .NET project has an
|
||||
|
||||
Reference in New Issue
Block a user