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:
Daniel A. White
2020-06-21 04:22:20 -04:00
committed by GitHub
parent d21cb62e3a
commit b238574100
3 changed files with 82 additions and 18 deletions
+13 -3
View File
@@ -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