Skip to content

Compilation for cpprestsdk fails on Visual Studio 18.5.3 #6300

Description

@Trenly

Relevant area(s)

WinGet CLI

Relevant command(s)

No response

Brief description of your issue

After I had an unrelated build failure for some NuGet changes, I ran a full clean with git clean -d -f -x. This effectively removes all build artifacts and is akin to creating a build from a fresh clone of the repository. After doing this, I ran a build which failed due to checked iterators in cpprestsdk.

The git clean is important because cpprestsdk falls under the vcpkg build and is not removed with a Clean Solution

Steps to reproduce

  1. Reset to commit b53a84f (current master at the time of this issue)
  2. Close Visual Studio
  3. Run git clean -d -f -x
  4. Use Visual Studio 2026 version 18.5.3 (there is a separate compilation issue to do with toolchains on newer versions)
  5. Attempt a build

Expected behavior

Build compiles successfully

Actual behavior

Build fails with a checked iterator error

Environment

Win11 dev environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions