From 1ea760096a3f5886ed25e5bf97e3e4ce1dfe16c6 Mon Sep 17 00:00:00 2001 From: Francisco Magdaleno Date: Tue, 24 Sep 2019 12:00:05 -0700 Subject: [PATCH] Update toolchain description to request the latest version (#40795) --- .../flutter_tools/lib/src/windows/visual_studio.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/lib/src/windows/visual_studio.dart b/packages/flutter_tools/lib/src/windows/visual_studio.dart index 8858ab6267..527866ec5a 100644 --- a/packages/flutter_tools/lib/src/windows/visual_studio.dart +++ b/packages/flutter_tools/lib/src/windows/visual_studio.dart @@ -127,11 +127,16 @@ class VisualStudio { // component name is significantly different in different versions. // Default to the latest known description, but use a specific string // if a known older version is requested. - String cppToolchainDescription = 'MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.21)'; + String cppToolchainDescription = 'MSVC v142 - VS 2019 C++ x64/x86 build tools'; if (visualStudioMajorVersion == 15) { - cppToolchainDescription = 'VC++ 2017 version 15.9 v14.16 latest v141 tools'; + cppToolchainDescription = 'VC++ 2017 version 15.9 v14.## latest v141 tools'; } - + // The 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64' ID is assigned to the latest + // release of the toolchain, and there can be minor updates within a given version of + // Visual Studio. Since it changes over time, listing a precise version would become + // wrong after each VC++ toolchain update, so just instruct people to install the + // latest version. + cppToolchainDescription += '\n - If there are multiple versions, install the latest one'; return { // The MSBuild tool and related command-line toolchain. 'Microsoft.Component.MSBuild': 'MSBuild',