You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drop support for targeting Windows Vista / Server 2008 #2286
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).
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).
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.
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.)
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
Activity
AlexGuteniev commentedon Oct 20, 2021
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.
fsb4000 commentedon Oct 20, 2021
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)
sylveon commentedon Oct 20, 2021
Thank you for this cursed knowledge
StephanTLavavej commentedon Oct 20, 2021
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 constructorconstexprwould inherently be header-only so there's no concern about interacting with separately compiled code; for anything involvingmsvcp140.dllwe'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.)[-]Can we drop support for targeting Windows Vista / Server 2008?[/-][+]Drop support for targeting Windows Vista / Server 2008[/+]Fully drop Vista