“Visual Studio update required” but its up to date

2019-04-06 04:05发布

问题:

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:

Review Solution Actions

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.

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.

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?

回答1:

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.

Please follow the next steps:

  1. Click Ok on the Error message.

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

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

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

From this:

<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>

To something like this:

<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>

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.

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



回答2:

I also stumbled upon this error.

There was a Typo in my old installation of Windows Software Development Kit. When I opened Programs and Features, there was Windows Software Development Kit 10.1.10586.212, but the VS2015 project require version 10.0.10586.212.

So I uninstalled all old ones (there was also 10.0.26624.0), downloaded new installation 10.0.10586.212 from: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive and it now works without any change in .csproj



回答3:

It would seem more correct to go to help/about in visual studio and note the current version of the Visual Studio Tool for Universal Windows Apps and use it. However, there could be change in that version that prevent the app from running. This is a classic compatibility problem with no better solution than to try it and pray. The manifest should show required levels of dependent executables. Another approach would be to rebuild from source and see if it compiles.

This is high level advice. I have such an app I want to build and I will go the route of recreating projects to see if source builds.



回答4:

I had this problem about a week ago, and ended up installing VS again from the Microsoft site. The download that fixed my problem was "Visual Studio Community - with Update 1" from here.

Had a few issues with code compatibility afterwards and had to reinstall a few SDKs, but other than that it fixed the "update required" prompts.