简体   繁体   English

重定向解决方案无效

[英]Retargetting solution has no effect

I have installed the latest Windows 10 SDK from here: https://developer.microsoft.com/de-de/windows/downloads/windows-10-sdk我已经从这里安装了最新的 Windows 10 SDK: https : //developer.microsoft.com/de-de/windows/downloads/windows-10-sdk

When I try to rebuild my solution, I get the error "MSB8036 The Windows SDK version 10.0.10069.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".当我尝试重建我的解决方案时,出现错误“MSB8036 The Windows SDK version 10.0.10069.0 was not found。安装所需版本的 Windows SDK 或在项目属性页面中更改 SDK 版本,或通过右键单击解决方案并选择“重定向解决方案”。

That is what I did:这就是我所做的: 在此处输入图片说明

The IDE tells me: "Retargeting End: 2 completed, 0 failed, 0 skipped". IDE 告诉我:“重定向结束:2 个完成,0 个失败,0 个跳过”。

However, when I then try to rebuild the solution, I'm getting the same error again.但是,当我尝试重建解决方案时,我再次遇到相同的错误。

Does anybody have any hint how to solve this problem?有没有人有任何提示如何解决这个问题?

Hmmm, I switched the "Platform Toolset" in the voice project from "Visual Studio 2015 (v140)" to "Visual Studio 2015 - Windows XP (v140_xp)" (which I wanted anyway), and now it works.嗯,我将语音项目中的“平台工具集”从“Visual Studio 2015 (v140)”切换到“Visual Studio 2015 - Windows XP (v140_xp)”(无论如何我都想要),现在它可以工作了。

I guess that doesn't solve the problem for anybody who has the same problem, but in my case it solved the problem.我想这并不能解决任何有同样问题的人的问题,但就我而言,它解决了问题。

Had same problem... Auto migrating didn't work, but changing at: properties ->Configuration properties -> windows SDK version有同样的问题...自动迁移不起作用,但在以下位置更改:属性 -> 配置属性 -> Windows SDK 版本

Probably the auto config didn't work while there was some other bug in the code which prevented the compiler to "take effect" or so.可能自动配置不起作用,而代码中还有一些其他错误阻止编译器“生效”左右。

Remove from ".vcxproj" files following strings:从“.vcxproj”文件中删除以下字符串:

<VCTargetsPath Condition="'$(VCTargetsPath11)' != '' and '$(VSVersion)' == '' and $(VisualStudioVersion) == ''">$(VCTargetsPath11)</VCTargetsPath>
<TargetPlatformVersion>10.0.10069.0</TargetPlatformVersion>

I'll admit off the bat that this isn't the 'correct' solution.我会立即承认这不是“正确”的解决方案。

But I was able to solve a similar issue by downloading the older SDK.但是我能够通过下载旧的 SDK 来解决类似的问题。 I originally couldn't find it in Window's archives but I was able to find it by going to 'Add/Remove Programs' and then select visual studios and click modify.我最初在 Window 的档案中找不到它,但我可以通过转到“添加/删除程序”找到它,然后选择 Visual Studios 并单击修改。

Scroll through the list of SDKs and check the one you need.滚动浏览 SDK 列表并检查您需要的那个。

Again, I realize this does not solve the symptom described above but this may solve the underlining issue for others who stumble here like I did.同样,我意识到这并不能解决上述症状,但这可能会解决像我一样在这里绊倒的其他人的下划线问题。

I had a similar issue in Visual Studio 2015, retargetting didn't work, appeared to do nothing.我在 Visual Studio 2015 中遇到了类似的问题,重新定位不起作用,似乎什么也没做。 I fixed this by deleting all of my cache data and running devenv /resetuserdata .我通过删除所有缓存数据并运行devenv /resetuserdata

See here: https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not/请参阅此处: https : //blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache - 或 - 否/

After this, I was able to retarget again.在此之后,我能够再次重新定位。

I had this problem because the project was readonly.我有这个问题,因为该项目是只读的。 It merely pretended to change it but actually did nothing (and changed it in the properties dialog).它只是假装改变它,但实际上什么也没做(并在属性对话框中改变它)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM