none
Visual Studio can't find windows 8.1 SDK when trying to build. (VS2015)

    Question

  • I've recently re-installed visual studio 2015 and now I can no longer build any of my projects because of the following error:

    "The Windows SDK version 8.1 was not found. install the required version of Windows SDK or change the SDK version of the project" Error: MSB8036

    However I've checked and the Windows SDK has been installed in C:\programfiles(x86)\Windows Kits\8.1

    I've tried re-installing visual studio multiple times, as well as running the repair/verify tool. Sadly with no results.

    I've also tried installing the windows 8.1 SDK manually using the standalone installer but this did not help either.

    I've tried searching for people with similair issues but due to "Windows 8.1" being a very common search term in other issues I was unable to find any issues relating to Visual Studio.

    Any help would be much apreciated!

    Tuesday, May 17, 2016 9:38 PM

All replies

  • I've been looking around and maybe it has to do with my enviroment path? I tried setting some of the SDK folders in my path in enviroment variables, but sadly no luck. I also read something about VS having it's own configuration of where to find SDKs but could not find the settings for this. Any ideas?
    Wednesday, May 18, 2016 8:51 AM
  • Hi EnTuna,

    >> I've recently re-installed visual studio 2015 and now I can no longer build any of my projects

    Do these projects are all Windows 8.1 projects or all projects type that include Windows Forms project and Console application?

    And I also don't find such settings to assign the SDK path for UWP application.

    According to your description, you have installed Windows 8.1 SDK without any error message when installing, is it right?

    Please use http://aka.ms/vscollect  to gather the VS and .Net Frameowrk installation logs. After using it, you will find vslogs.cab from %temp% folder. Please upload the file to Onedrive and share the link here.

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, May 18, 2016 9:45 AM
    Moderator
  • Hi Weiwei

    Thanks for the reply, I've uploaded my vslogs to onedrive as requested and they can be found here:

    https://onedrive.live.com/redir?resid=4134AE993736E5CB!107&authkey=!AHeyTw1BRT9j1XI&ithint=file%2czip

    >> Do these projects are all Windows 8.1 projects or all projects type that include Windows Forms project and Console application?

    I'm sorry I forgot to mention but these projects are indeed all Windows 8.1 projects.

    >> According to your description, you have installed Windows 8.1 SDK without any error message when installing, is it right?

    Yes the SDK has been successfully installed, using the visual studio installer. I've also tried installing using the standalone SDK installer but this did not resolve the issue.

    Greetings,

    Tuna

    Wednesday, May 18, 2016 10:59 AM
  • Hi Tuna,

    According to your installation log, I don't find any errors about Windows 8.1 SDK.

    Please create a new default Windows 8.1 project and then build it again to check whether this problem occurs with existing Windows 8.1 project or all existing and new projects.

    The error message mentioned that "install the required version of Windows SDK or change the SDK version of the project". I'm afraid that the problem may be related to the your existing project. Please check whether the installed Windows 8.1 SDK version is not the same with the version that created project.

    In addition, please tell us your Window version and if possible, please provide a sample project that has this issue to OneDrive and share a publish link here. I will test it whether it is caused by the Windows 8.1 SDK version or not.

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, May 19, 2016 3:19 AM
    Moderator
  • I am also having this issue.  It is happening on existing and new Windows 8.1 projects.
    Monday, August 15, 2016 12:18 PM
  • I had to dive in after encountering the same issue. The direct source of the MSB8036 error message is Toolset.targets, (%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets), which says:

        <PropertyGroup Condition="'$(TargetPlatformVersion)' == '8.1' and '$(AppContainerApplication)' != 'true'" >
            <MissingSDKProps Condition="!Exists('$(WindowsSdkDir)\DesignTime\CommonConfiguration\Neutral\Windows.props')">true</MissingSDKProps>
        </PropertyGroup>
    
        <VCMessage Code="MSB8036" Type="Error" Arguments="$(TargetPlatformVersion)" Condition="$(MissingSDKProps) == 'true'" />
    

    So it is not enough to have C:\programfiles(x86)\Windows Kits\8.1, you also must have \DesignTime\CommonConfiguration\Neutral\Windows.props within it - just to avoid this direct message.

    In my case the Windows Kits\8.1 folder didn't have a DesignTime (and many other) subfolders, and repeated attempts at repairing the installation failed. I had to uninstall WinSDK10 that I had on my machine, and only then re-install 8.1. The DesignTime folder appeared with all the needed contents, and everything builds fine since. 

    HTH

    Tuesday, January 24, 2017 2:17 PM