-
-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable XP deprecation warning for Visual Studio projects #1439
Conversation
Looks like all the tests are failing (should have thought of that) - perhaps it at least should only be added to Windows projects (and I should maybe move it to the bottom of the globals list)? |
You should definitely ensure it only happens on Windows ( |
It also happens in VS2017 - it's a general issue with the toolset, because MS added the XPDeprecationWarning as true *in I don't have VS2017 installed right now, but I remember it from when I had and this stackoverflow *post seems to corroborate that: https://stackoverflow.com/questions/53841470/how-to-disable-warning-msb8051-support-for-targeting-windows-xp-is-deprecated It doesn't however happen with VS2015, or when you select the v140_xp buildtools in VS2017 or VS2019 ... Edit: Okay I solved it the following way. Instead of setting it globally for the entire project, I moved the function to the Now I just need to have a look at the tests. Edit2: Typos.... |
@withmorten thanks for the additional context on that! |
The final result then looks like this, instead of adding it to the Globals, it gets added to the Configuration specific parts:
That's okay? It disables the build warning just fine even though the placement in the vcxproj is a bit odd. Tests are fine now too, but I probably would need to add a test for toolset == v141_xp, similar to the v120_xp test. |
Seems good to me 👍 |
…in config; add tests
Okay, now it only sets the warning to false when specifically choosing v141_xp, and only per config! I hope the way I added the tests (one for global, one for specific config "Release" only) is okay! |
Related issue: #1438