How to set the Visual Studio version?

Got the same problem, selected VS2017 but still opens 2015.