我可以将Windows SDK路径传递给msbuild吗? (想要在不安装Windows SDK的情况下构建解决方案) [英] Can I pass windows SDK path to msbuild ? (want to build solution without installing windows SDK)

查看:168
本文介绍了我可以将Windows SDK路径传递给msbuild吗? (想要在不安装Windows SDK的情况下构建解决方案)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在将我们的VS 2008解决方案迁移到VS 2017.



目前我们的存储库中有msvc90 include / src文件。我们只是将它同步到构建服务器。因此我们不需要在构建服务器上安装单独的VS或WinSDK。



我们希望保持相同的行为迁移后。



使用VS 2017,我不得不从VCBUILD切换到MSBUILD。在这里我可以看到我需要在构建机器上安装Windows SDK才能构建我的解决方案。





有什么方法可以将WinSDK路径传递给MSBuild吗?那么它不会寻找已安装的WinSDK?



我尝试过:



我在互联网上搜索但dint在任何地方获得任何有用的信息。

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.

推荐答案

winapi - 如何在MSBuild中获取Windows SDK文件夹? - 堆栈溢出 [ ^ ]


这篇关于我可以将Windows SDK路径传递给msbuild吗? (想要在不安装Windows SDK的情况下构建解决方案)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆