“Visual Studio update required” but its up to date

后端 未结 4 1381
旧时难觅i
旧时难觅i 2021-02-20 15:41

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 a

相关标签:
4条回答
  • 2021-02-20 16:04

    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

    0 讨论(0)
  • 2021-02-20 16:06

    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.

    0 讨论(0)
  • 2021-02-20 16:10

    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

    0 讨论(0)
  • 2021-02-20 16:14

    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.

    0 讨论(0)
提交回复
热议问题