Could not find SDK “Microsoft.VCLibs, Version=14.0” on Windows 10

前端 未结 6 3174
青春惊慌失措
青春惊慌失措 2021-02-20 17:57

I have just installed windows 10 and wanted to give a try on windows universal desktop apps. With the installation of Visual Studio community version there were no templates for

相关标签:
6条回答
  • 2021-02-20 18:44

    If you are indeed "missing the templates" for Universal Windows apps for your VS 2015 installation on a Winodws 8.1 or Windows 10 development system, then you should make sure you actually have the UWP tools installed. They are not installed by default. You have to use the 'Custom' install option and select them.

    You can do this after installation by going to Control Panel -> Programs and Features -> select Microsoft Visual Studio 2015 and hit Change, then Modify, and then make sure that you have checked the Tools and Windows SDK 10 option under Universal Windows App Development Tools. If not, you can check it here and install it. See Universal Windows apps in .NET

    If you already have these installed, but they still don't work you can try the Repair option instead of Modify

    BTW, I know you mentioned C#, but for anyone wanting to use C++, be sure to enable that as well--this is also not installed by default. See Setup Changes in Visual Studio 2015 Affecting C++ Developers and Developing for Windows 10 with Visual C++ 2015.

    0 讨论(0)
  • 2021-02-20 18:45

    Make sure you have the latest Windows SDK installed. It was released just yesterday. Any previous version (CTP) won't work with the latest Visual Studio 2015 Version. So if your SDK is e.g. 3 days old it just won't work. Get the latest here: https://dev.windows.com/en-us/downloads

    Also see this blogpost that explains the compatibility topic: http://blogs.windows.com/buildingapps/2015/06/29/release-dates-and-compatibility-visual-studio-2015-and-windows-10-sdk/

    0 讨论(0)
  • 2021-02-20 18:46

    Visual Studio 2017

    For anyone having this problem in Visual Studio 2017 using C# Universal Windows, following is the procedure to fix this:

    1. Right click on Solution in Solution Explorer and Click Add/New Project
    2. Go to Other Languages/Visual C++/Windows Universal in installed tab.

    3. It will show you the option to install the required tools:

    Hope this helps :)

    0 讨论(0)
  • 2021-02-20 18:52

    I tried the above answers with no success, I ended up rerunning the installer (alternatively you can use the steps in Chuck Walbourn's first link) and choosing repair instead of modify. It took a long time to run through but ended up solving this issue. Hope this helps anyone else who finds this thread.

    0 讨论(0)
  • 2021-02-20 18:54

    Edit your .csproj and add these references:

    <SDKReference Include="Microsoft.VCLibs, Version=14.0">
      <Name>Visual C++ 2015 Runtime for Universal Windows Platform Apps</Name>
    </SDKReference>
    <SDKReference Include="Microsoft.VCLibs.120, Version=14.0">
      <Name>Microsoft.VCLibs.120</Name>
    </SDKReference>  
    
    0 讨论(0)
  • 2021-02-20 18:57

    I'm having the same problem, i figured out that VCLibs are located in C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs So what i did: i copied the folder 10 and pasted it into the Windows folder instead of Windows Kits and renamed it to v10.0

    that being fixed, it gave me an other error: SDK folder containing 'UAP.props' for 'UAP 7.0' cannot be located. I didnt figured that one out yet and I also don't know if this is a good workaround.

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