---
# System prepended metadata

title: Flutter on Visual Studio 2026

---

# Flutter on Visual Studio 2026

Edit visual_studio.dart

```dart
  /// The generator string to pass to CMake to select this Visual Studio
  /// version.
  String? get cmakeGenerator {
    // From https://cmake.org/cmake/help/v3.22/manual/cmake-generators.7.html#visual-studio-generators
    return switch (_majorVersion) {
	  18 => 'Visual Studio 18 2026',
      17 => 'Visual Studio 17 2022',
      _ => 'Visual Studio 16 2019',
    };
  }
```
![image](https://hackmd.io/_uploads/SkAMpPXxbg.png)

https://github.com/flutter/flutter/issues/176399