"There are no property pages for the selection" error in Visual Studio

Viewed 9156

When I go to edit a properties page in Visual Studio 2015 with C++, I'm always getting the error, "There are no property pages for the selection." This usually happens when I'm switching from one Platform to another (e.g. x64 -> Win32).

Usually it will work if I switch the platform from the main window, but if I try to switch it in the Property Pages, I always get that error.

Thanks for the help.

2 Answers

This problem seems to be linked between MSBuild tools and environment paths. On visual studio 2017 v15, after I had downloaded MSBuild tools it updated the VCTarget path to

C:\Windows\Microsoft.NET\Framework64\v4.0.30319

where it should actually point to

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin

In my case changing the environment path wasn't working and eventually I had to manually update the VCTargets path from regedit: HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions

also make sure the priority of path you define in environment variable is correct.

Related