Where is latest version of Windows 10 SDK available in Visual Studio 2017 Installer? - visual-studio-2017

According to this Microsoft post about latest Windows 10 SDK version 10.0.17763.132:
…. or you can install it by selecting this version of the Windows 10 SDK (10.0.17763.132) in the Visual Studio 15.8 Installer optional components.
But when I go to the installer of VS2017 - ver 15.9.5 from VS2017-->Tools-->Tools and Features, I don't see the Windows 10 SDK version 10.0.17763.132 as shown in the image below:
Question: How can I install Win 10 SDK version 10.0.17763.132 from Visual Studio installer?

Related

How can I set up Visual Studio 2017 to develop drivers?

According to this forum, https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
Windows Driver Kit is not currently supported by visual studio 2017.
I tried installing the Windows Driver Kit, but the test driver projects, such as this one, fail to build
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
I get this error when building:
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
I already tried retargeting the Solution to the two options I have: 10.0.17134.0 and 8.1, but the same error keeps coming up.
What do I need to do to build this sample driver? Do I need to install VS2015? VS2017 community edition? Why isn't this WDK supported by the Visual Studio 2017 professional version?
Thanks,
Visual Studio 2017 definitely supports kernel-mode device driver development; there's no doubt about that because I've been using VS17 for it for many, many months.
Use the latest version of Windows Driver Kit (WDK) which can be downloaded and installed from MSDN: https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
Furthermore, you can always use the Enterprise WDK and then you can simply build using that if you wanted to from command-line. (Also can be found on page linked-to above)
Download the correct WDK installer for your edition of Visual Studio 2017:
WDK for Windows 10, version 1809 for Visual Studio Community 2017
WDK for Windows 10, version 1803 for Visual Studio Professional 2017
WDK for Windows 10, version 1709 for Visual Studio Enterprise 2017
Visit https://learn.microsoft.com/en-us/windows-hardware/drivers/other-wdk-downloads for more information.
Not exactly a solution, but Windows 8.1 WDK works with Visual Studio 2017 Enterprise,
Download it from here, just need to retarget the project to 8.1
https://www.microsoft.com/en-us/download/confirmation.aspx?id=42273
In addition, I needed to get VS2015 C++ Build Tool to fix a missing Microsoft.cpp.props error
http://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F98B238/visualcppbuildtools_full.exe
Developing drivers to windows is quite interesting one will be exposed to advanced Operating System Concepts.The set up for the environment will be IDE
IDE - Visual Studio (https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16)
Compilers (WDK)
Debugger (WDK)
WDK contains both(https://go.microsoft.com/fwlink/?linkid=2085767). Latest Visual Studio(VS2019) will come along with the latest WDK(10, 1903 as of now).
Sometimes plugins might not work properly i.e integration issues between Visual Studio and WDk.
By going to the location "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019" and run VSIX installer.
Now in a new project, driver related templates are available.

The Windows SDK version 7.0 was not found

I have a console C++ project which uses Boost and Catch using Visual Studio 2017 Community Edition. It was building fine last night and today it says,
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(34,5): error MSB8036: The Windows SDK version 7.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
Specifically, what doe this means?
The Windows SDK version 7.0 was not found. Install the required version of Windows SDK
I repaired Visual Studio and that didn't work so it's not Visual Studio. I can compile other C++ projects.
Web-searches doesn't really find Windows SDK version 7.0, there is Windows SDK for Windows 7.
I'm completely baffled by this error.
I figured it out. Very silly problem.
The second line, "Windows SDK Version" had somehow gotten 7 on it.

Can't find .NET Framework 4.7 targeting pack in Visual Studio Installer on Windows Server 2016

We have a Windows Server 2016, with a build agent for TFS 2017 update 1, which is using Visual Studio Entreprise 2017.
All windows updates are done
I installed the .NET 4.7 Runtime and the .NET 4.7 Targeting Pack (I tried online and offline)
the key in registery exists (see screenshot)
this folder is present C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7
I relaunched Visual Studio Installer
I reinstalled Visual Studio
I rebooted a bunch of times
But I still can't see the .NET Framework 4.7 SDK or targeting pack in Visual Studio Installer > individual Components.
installation screenshot
A working short term solution, to add this param the Build solution Step
/p:FrameworkPathOverride="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7"
Does anyone have any ideas how to force .NET 4.7 to be detected by the Visual Studio Installer?
I had the same problem on Windows Server 2016 with latest Visual Studio 2017.
Solved it by installing: https://www.microsoft.com/en-us/download/details.aspx?id=55168.
(Microsoft .NET Framework 4.7 Developer Pack and Language Packs for Windows 7 SP1, Windows 8.1, Windows 10 Anniversary Update, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2 and Windows Server 2016 combo package).
Install Developer Pack of the required .NET Framework to make it visible and selectable in Visual Studio.
For example .NET Framework 4.7.1 was not visible for me in Visual Studio 2017 (Although it was installed on my machine), So what I did that installed developer pack for 4.7.1 and it worked like a magic.

Where is WDF template after installing wdk?

visual studio community 2017 + wdk 10.0.15063.0 + sdk 10.0.15063.137
I installed vs2017 first,and then,the wdk.
However I cound't find the WDF template when I try to create a KMDF.
Appreciate for any help.
The WDK Build 15063 for Windows 10 v1703 only supports Visual Studio 2015. So for driver development you have to stay on the older VS2015 until a compatible version is available to be used in VS2017.
Starting with WDK Build 16299 for Windows 10 v1709 VS2017 is now the only supported option. So if you want to use only VS2017, install the WDK Build 16299/Win10 v1709.
If you still have issues, try to install the matching Windows 10 SDK (same Build number). This fixed the issue for an user.

Targeting Windows XP using Build Tools 2015 without Visual Studio

I installed Visual C++ Build Tools 2015 on my machine running Windows 7.
In Windows SDK 8.1 and 10 there is no Windows XP targeting platform support.
It was introduced in Windows SDK 7.1A, but I can't find the download for it. It is also included in Visual Studio 2012 Update 4, but I would rather not install Visual Studio for it.
Is there any way to target Windows XP (v110_xp) using only Build Tools 2015?
I think SDK 7.1 + Visual Studio 2010 were the last version to support XP without having to install an additional taget Windows SDK 7.1. But it is tricky to install old versions of that SDK if you have installed more recent version of VS. Also VS2010 doesn't have complete support for the C++11 since it predates that.
Since SDK 8 the compilers are not included, and should be installed from VS Express and/or Community. See this if you want to compile C++11 code tagetting XP Configuring C++ 11 Programs for Windows XP. If I recall correctly the _xp taget was not included in the RTM version, and you should install the SP1.