How to force an SDK version for build? #5359
Unanswered
rectified95
asked this question in
General questions
Replies: 1 comment 1 reply
-
Hello @rectified95, I suppose "resolved locally by using the proper SDK" literally means you've changed target SDK of your Visual Studio project according to https://docs.microsoft.com/en-us/cpp/windows/how-to-use-the-windows-10-sdk-in-a-windows-desktop-application?view=msvc-170 Are you sure your committed the changes to the repo? I mean is not the project file accidentally gitignored? Can you please doublecheck the .cproj file refers to the correct SDK in
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can see that the specific version of the SDK which I require (10.0.20348.0) is installed in the Windows2019 environment - https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#installed-windows-sdks
How can I force the right headers to be used during my build? I know it's not using the right version since my build fails with an error I resolved locally by using the proper SDK.
(Specifically, I need it to use this struct: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/ns-winsock2-sock_notify_registration defined in winsock2.h)
Beta Was this translation helpful? Give feedback.
All reactions