Skip to content

Visual Studio 2019 #1772

@TjeuKayim

Description

@TjeuKayim

Describe the problem you are trying to solve

Rustup prompts for installing the Microsoft C++ build tools on Windows. It refers to Visual Studio 2017, and links to https://aka.ms/buildtools. I noticed that this information is outdated.

On 2 April 2019, Visual Studio 2019 was released. The link https://aka.ms/buildtools is pointing to https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017, but that anchor does not exist anymore.

https://github.com/rust-lang/rustup.rs/blob/8f1d93edbd037fbc849e72c7aef66a61146ee458/src/cli/self_update.rs#L175-L190

Describe the solution you'd like

The instructions printed by the CLI need an update. The help text should refer to Visual Studio 2019. Instructions to install 'Visual C++ Build Tools 2017' should be removed. It seems like the official downloads are no longer available.

Maybe the package manager chocolatey can be mentioned as an alternative to acquire the build-tools.

Notes
Steps to install build tools 2019:

  1. Visit https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
  2. Download "Build Tools for Visual Studio 2019"
  3. Start the installer and enable the checkbox "C++ build tools"
  4. Run rustup-init.exe

I verified this process on a clean Windows 10 machine. Afterwards Cargo runs successfully.

Screenshot of Visual Studio 2019 installer:

afbeelding

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions