if you're getting an issue like this:
$ flutter build windows
CMake Error at CMakeLists.txt:3 (project):
Generator
Visual Studio 16 2019
could not find any instance of Visual Studio.
Unable to generate build file
It's because flutter doesn't support visual studio 2026 yet: https://github.com/flutter/flutter/blob/f35a2875aecafd728932621ae41a1ac4099e16a6/packages/flutter_tools/lib/src/windows/visual_studio.dart#L184-L187
So, meanwhile flutter updates their sdk, revert to the older visual studio 2022 version
New contributor
rando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
-
2If you want to share your knowledge on Stack Overflow, you still need to follow Question/Answer format: write a question post which contains only a problem, and post an answer with a solution. See also stackoverflow.com/help/self-answerTsyvarev– Tsyvarev2025年11月15日 23:36:53 +00:00Commented Nov 15 at 23:36
lang-dart