Skip to content

Drop support for targeting Windows Vista / Server 2008 #2286

Closed

Description

I would like a pony 🐴 and a unicorn 🦄. I would also like to drop support for targeting Windows Vista and Server 2008 (Vista's server counterpart, distinct from Server 2008 R2 which was Win7's server counterpart).

According to Wikipedia, extended support for Vista ended in April 2017, and security updates for Server 2008 ended in January 2020.

The only part of the STL that cares about the difference between Vista and Win7 is the mutex / condition_variable machinery. While the v19 ABI restricts us from making data structures significantly smaller and cleaner, we could still improve the code by unconditionally assuming that the target OS is Win7+ (benefiting all users). It might even be possible to make mutex's constructor constexpr, which has been a longstanding conformance issue (see #2285).

I think this decision might already have been made at the VS level, so we just need to confirm things with our bosses and boss-like entities. Visual Studio 2022 Platform Targeting and Compatibility says:

Build Apps that Run on Windows Clients

Windows client version Using Tools for Native and Managed Classic Windows Desktop Development Using Tools for UWP App Development
[...] [...] [...]
Windows 7 Yes Not applicable
Windows Vista No Not applicable
Windows XP No Not applicable

This seems to clearly say that the VS 2022 toolset cannot be used to build apps targeting Vista (but of course the VS 2019 and earlier toolsets remain available to install).

Activity

  1. added
    performance
    decision needed
    on Oct 20, 2021
  2. AlexGuteniev commented on Oct 20, 2021

    @AlexGuteniev
    Contributor

    I recall after XP drop in VS 2019 there was still a requirement to be able to build the STL DLL targeting XP, and it was dropped because it wasn't possible to sign that DLL anymore.

    So if Vista/2008 is dropped, please clarify if it is a full drop, or building STL DLL might be still needed.

  3. fsb4000 commented on Oct 20, 2021

    @fsb4000
    Contributor

    This seems to clearly say that the VS 2022 toolset cannot be used to build apps targeting Vista

    VS 2022 toolset can be used to build apps targeting even Windows 98. But only for .NET (is it "Managed Classic Windows" ?).

    изображение

    After installing .NET framework 3.5, you can create apps for .NET 2.0 (WinForms or Console)

    изображение

    изображение

  4. sylveon commented on Oct 20, 2021

    @sylveon
    Contributor

    Thank you for this cursed knowledge

  5. StephanTLavavej commented on Oct 20, 2021

    @StephanTLavavej
    MemberAuthor

    Mahmoud Saleh (@MahmoudGSaleh) says that this should be feasible, and that we'll document it in the release notes. Casey Carter (@CaseyCarter) notes that making mutex's constructor constexpr would inherently be header-only so there's no concern about interacting with separately compiled code; for anything involving msvcp140.dll we'll need to be more careful, but we don't need to ensure that the DLL continues to run on Vista (as AlexGuteniev asked), as it will be documented as no longer supported. (If it happens to run on Vista that's fine, we're not going to go out of our way to block it.)

  6. removed
    decision needed
    on Oct 20, 2021
  7. changed the title [-]Can we drop support for targeting Windows Vista / Server 2008?[/-] [+]Drop support for targeting Windows Vista / Server 2008[/+] on Oct 20, 2021
  8. added a commit that references this issue on Nov 2, 2021
    505ec4c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions