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

情到浓时终转凉″ 提交于 2019-12-05 17:09:21

问题


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 this kind of project, and I installed it manually via VS. In the process of installation there were three things installing (as far as i remember it was some SDK version). Then I created a simple project under Visual C# -> Windows -> Blank App (Universal Windows), and when I build the app its says:

Could not find SDK "Microsoft.VCLibs, Version=14.0".

I already tried to search on google but only two results come at this time. I appreciate any help. Thanks.


回答1:


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.




回答2:


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.




回答3:


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/




回答4:


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




回答5:


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.




回答6:


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>  


来源:https://stackoverflow.com/questions/31724378/could-not-find-sdk-microsoft-vclibs-version-14-0-on-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!