Setting the target framework in C++ Projects
If you need to change the target framework in C++ projects,
you actually need to manually change the .vcxproj file.
Right click the project file and select unload
Add “<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>”
Example:
<PropertyGroup Label="Globals">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
Save and close the .vcsproj file
Right click the project and select “Reload Project”
Reference: