This project has ported a book example of Introduction to 3D Game Programming with DirectX 11 to run on Windows 10.
I worked on Windows 10 (Windows Kits), Visual Studio 2015, and confirmed the behavior in 2017.
It will probably work on Windows 8 as well.