Share via

MSBuild requiring certain SDKS

Anonymous
2022-02-04T15:29:17.927+00:00

I am trying to get our project building on a Docker container. Currently we build our .vcxproj files with no problems and each developer is not required to have a specific SDK installed.

When I have installed the build tools onto the docker container, it is not building our .vcxproj files without adding the:

<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>

XML tag to the Globals property group. We want to avoid having to add this line. Is there anyway to get MSBuild to grab the default SDK installed and not have to declare this line in every project file, or is there a way to troubleshoot why it's requiring us to declare this line in the 1st place?

Community Center | Not monitored

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.