![](/img/trans.png)
[英]How to fix the error "windows sdk is not installed correctly" in Visual Studio 2019?
[英]Visual Studio 2019 Windows SDK executable path macro has multiple paths
我試圖在我的 C++ 項目后期構建事件中使用$(WindowsSDK_ExecutablePath_x64)
來復制一些文件。 但是,它包含兩條路徑而不是一條。 我似乎無法找到如何使用第一條路徑(不是 .Net 路徑):
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64
我想在我的后期構建事件中執行類似copy /Y $(WindowsSDK_ExecutablePath_x64)\\bin\\file.ext destination
。 我怎樣才能做到這一點? 我正在使用 VS 2019 並安裝了最新的 Windows SDK。
我最終使用了以下內容:
$(WindowsSdkDir)bin\\$(TargetPlatformVersion)\\x64\\dxil.dll
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.