JetBrains / teamcity-dotnet-plugin

TeamCity plugin for .NET projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

finds wrong dotnet.exe if more than one file ends with dotnet.exe

Vizibirka opened this issue · comments

If more than one file ends with the name dotnet.exe and the real dotnet.exe is not on the first place on PATH, the plugin incorrectly finds the first one and it does not give any log messages about, and just skip silently adding DotNetCLI .

Real world example: Coverity (static code analyzer tool) has some files which ends with dotnet.exe

Files:
cov-internal-emit-dotnet.exe
cov-internal-host-dotnet.exe
cov-internal-emit-dotnet.exe

Suggestion:

  1. try to find every file ending with dotnet.exe which are on the PATH
  2. give more log when a exe's version number cannot be parsed instead of silently moving forward