Click here to Skip to main content
15,885,998 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am migrating our VS 2008 solution to the VS 2017.

Currently we have msvc90 include/src files in our repository. We just sync it to the build server.Hence we did not need to have a separate VS or WinSDK installation on the build server.

We want to keep the same behavior after migration.

With VS 2017 i had to switch to the MSBUILD from VCBUILD. Here what i can see is i will need to install Windows SDK on the build machine in order to build my solution.


Is there any way by which i can pass the WinSDK path to MSBuild ?? So that it will not look for the "installed" WinSDK ?

What I have tried:

I searched on the internet but dint get any helpful information anywhere.
Posted
Updated 5-Jan-18 2:29am
Comments
Wessel Beulink 5-Jan-18 8:32am    
What is the reason you want to switch this behaviour?
PrafullaVedante 6-Jan-18 0:40am    
Our build system is consists of pool of 100 machines.

When we fire a build, any machine will get selected to perform build.

Currently we will need to install WinSdk on all 100 machines. This is inconvenient as well as intrusive.

That's the reason we want to keep sdk in repository... So that at the time of build we will just sync it ....

1 solution

 
Share this answer
 
Comments
PrafullaVedante 6-Jan-18 5:57am    
This is not what I am looking for.

I want to copy WinSdk at some custom folder... And then I want MDBuild to refer that folder while building.
[no name] 8-Jan-18 2:02am    
Did you check Native multi-targeting feature of Visual studio 2017 which is the ability of the latest IDE to build using tool sets installed by previous versions of Visual Studio (VS 2008 and up).I believe the behavior that you are expecting is quite impossible in MS build.Please check with CMAKE tools and try once.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900