Open peetrike opened 2 years ago
Also the next line could have parameter -CommandType Application
added:
https://github.com/RamblingCookieMonster/BuildHelpers/blob/master/BuildHelpers/Public/Get-ProjectName.ps1#L47
The same problematic pattern is also in Invoke-Git
command:
https://github.com/RamblingCookieMonster/BuildHelpers/blob/master/BuildHelpers/Public/Invoke-Git.ps1#L87
When there is defined alias with name git, the
Get-ProjectName
command (called without parameters) emits following error message:The command itself works despite the error above.
The error could be avoided when $GitPath variable contains string
git.exe
or when theget-command
has parameter-CommandType Application
added at: https://github.com/RamblingCookieMonster/BuildHelpers/blob/master/BuildHelpers/Public/Get-ProjectName.ps1#L57