“需要更新 Visual Studio"但它是最新的 [英] "Visual Studio update required" but its up to date

查看:26
本文介绍了“需要更新 Visual Studio"但它是最新的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我全新安装了 Visual Studio 2015 社区,并在我的计算机上运行了 Windows 10 UWP SDK.最近我尝试打开一个从另一台计算机导入的项目,当我启动解决方案时,我收到下一条错误消息:

I have a fresh install of Visual Studio 2015 community with Windows 10 UWP SDK running in my computer. Recently I tried to open a project that I imported from another computer and when I launch the solution I get the next error message:

查看解决方案操作

需要更新 Visual Studio一个或多个项目需要一个平台 SDK(UAP,版本:10.0.10586.0),该 SDK 要么未安装,要么作为 Visual Studio 未来更新的一部分包含在内.

Visual Studio update required One or more projects require a platform SDK (UAP, Version: 10.0.10586.0) that is either not installed or is included as pat of a future update to Visual Studio.

安装平台 SDK 以打开这些项目.

Install the platform SDK to open these projects.

当我单击确定"时,我看到我在解决方案资源管理器中的所有项目旁边都有文本(需要更新).

When I click Ok, I see that all my projects in the solution explorer have the text (update required) next to them.

当我单击它时,它会将我带到 Windows 10 SDK 下载页面以下载我已经一遍又一遍地安装的 SDK.我也不止一次修复了解决方案.最后我从头开始重新安装了 Visual Studio 2015.

And when I click it, it takes me to the Windows 10 SDK download page to download an SDK that I have already installed over and over again. I have also repaired the solution more than once. And finally I have reinstalled the Visual Studio 2015 again from scratch.

我该怎么做才能让我的项目再次运行?

What can I do to make my project work again?

推荐答案

这个错误非常具有误导性.我花了很多宝贵的时间试图修复它.如果您确定您的 Visual Studio 是最新的,则不需要更新或修复 Visual Studio 2015.

This error is very misleading. I spent many precious hours trying to fix it. If you are certain that your Visual Studio is up to date, you do not need to update nor repair the Visual Studio 2015.

请按照以下步骤操作:

  1. 在错误消息上单击确定".

  1. Click Ok on the Error message.

转到您的解决方案资源管理器并右键单击带有(需要更新)标签的项目.

Go to your solution explorer and right click on your projects with the (update required) tag.

右键单击项目并选择选项:Edit MyProject.csproj"

Right click the Project and select the option: "Edit MyProject.csproj"

将 Windows 10 SDK 的所有外观编辑为较低版本,例如 10.0.10240.0

Edit all the appearances to the Windows 10 SDK to a lower version like 10.0.10240.0

从这里:

<SDKReference Include="WindowsDesktop, Version=10.0.10586.0">
  <Name>Windows Desktop Extensions for the UWP</Name>
</SDKReference>
<SDKReference Include="WindowsMobile, Version=10.0.10586.0">
  <Name>Windows Mobile Extensions for the UWP</Name>
</SDKReference>

<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>

这样的事情:

<SDKReference Include="WindowsDesktop, Version=10.0.10240.0">
  <Name>Windows Desktop Extensions for the UWP</Name>
</SDKReference>
<SDKReference Include="WindowsMobile, Version=10.0.10240.0">
  <Name>Windows Mobile Extensions for the UWP</Name>
</SDKReference>

<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.10240.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>

对解决方案中的所有项目重复,并多次重新加载项目(VS 有一个问题来刷新其结构),您必须耐心等待并可能重新启动几次.

Repeat for all the projects in your solution, and reload the projects multiple times (VS has a problema to refresh its structure), you have to be patient and probably restart it a couple of times.

你可以走了!有关更多信息,请查看此页面:https://msdn.microsoft.com/en-us/library/Mt148501.aspx#RCUpdate10CSharp

And you are good to go! For more info please review this page: https://msdn.microsoft.com/en-us/library/Mt148501.aspx#RCUpdate10CSharp

这篇关于“需要更新 Visual Studio"但它是最新的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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