Error windows SDK v8.1 must be installed in order to build this target

Check the toolchain setting sin VS project options. In my case I had a mix of old and new toolchains in my project. Once I cleared it all and deleted all temporary files it was OK