Skip to content

Generating VisualStudio project does not work after updating to VS 2026 #120578

@VSadov

Description

@VSadov

Typing a command:

E:\dotnet003\runtime>build.cmd -vs coreclr.sln

build fails with:

  Not searching for unused variables given on the command line.
  CMake Error: Could not create named generator Visual Studio

  Generators
    Visual Studio 17 2022        = Generates Visual Studio 2022 project files.
                                   Use -A option to specify architecture.
    Visual Studio 16 2019        = Generates Visual Studio 2019 project files.
                                   Use -A option to specify architecture.
    Visual Studio 15 2017        = Generates Visual Studio 2017 project files.
                                   Use -A option to specify architecture.
    Visual Studio 14 2015        = Generates Visual Studio 2015 project files.
                                   Use -A option to specify architecture.
    Borland Makefiles            = Generates Borland makefiles.
  * NMake Makefiles              = Generates NMake makefiles.
    NMake Makefiles JOM          = Generates JOM makefiles.
    MSYS Makefiles               = Generates MSYS makefiles.
    MinGW Makefiles              = Generates a make file for use with
                                   mingw32-make.
    Green Hills MULTI            = Generates Green Hills MULTI files
                                   (experimental, work-in-progress).
    Unix Makefiles               = Generates standard UNIX makefiles.
    Ninja                        = Generates build.ninja files.
    Ninja Multi-Config           = Generates build-<Config>.ninja files.
. . . 

CMake is the latest (4.1.2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions