[vcpkg] Fix search for pwsh in vcpkgtools.xml. (#14271)

This commit is contained in:
Billy O'Neal 2020-10-28 01:30:18 -07:00 committed by GitHub
parent a6a1722cfa
commit ead8d6bad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,8 +467,9 @@ Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-2 Wed Feb 26 23:23:50
struct PowerShellCoreProvider : ToolProvider struct PowerShellCoreProvider : ToolProvider
{ {
std::string m_exe = "pwsh"; std::string m_exe = "pwsh";
std::string m_name = "powershell-core";
virtual const std::string& tool_data_name() const override { return m_exe; } virtual const std::string& tool_data_name() const override { return m_name; }
virtual const std::string& exe_stem() const override { return m_exe; } virtual const std::string& exe_stem() const override { return m_exe; }
virtual std::array<int, 3> default_min_version() const override { return {7, 0, 3}; } virtual std::array<int, 3> default_min_version() const override { return {7, 0, 3}; }