Visual Studio 2013 shows empty project properties when VS2008 is used as toolset

孤街醉人 提交于 2019-12-10 16:34:59

问题


Visual Studio doesn't display the project properties for a C++ project when a configuration is selected which uses vs90 as its toolset.

When I right-click a project in the affected solution and select "Properties" from the context menu, the property dialog appears empty:

I remember that it used to show normal compiler options even for older toolsets. What could cause this behaviour?


回答1:


I was able to fix it by making sure that VCTargetsPath (and corresponding VCTargetsPath12 for VS 2013 property) in MSBuild contains a trailing backslash.

Found this by monitoring the devenv.exe process using Process Monitor from sysinternals and noticed that it was trailing to load an invalid path due to missing . After adding it, the project properties started displaying correctly.




回答2:


I found a similar problem - if I selected one specific build configuration in visual studio the Project Properties dialog went permanently blank and there was no way to go back to a working configuration.

The solution I eventually found was a devenv commandline option: devenv /resetuserdata



来源:https://stackoverflow.com/questions/29303735/visual-studio-2013-shows-empty-project-properties-when-vs2008-is-used-as-toolset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!