当VS2008用作工具集时,Visual Studio 2013显示空项目属性 [英] Visual Studio 2013 shows empty project properties when VS2008 is used as toolset

查看:312
本文介绍了当VS2008用作工具集时,Visual Studio 2013显示空项目属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当选择使用vs90作为其工具集的配置时,Visual Studio不会显示C ++项目的项目属性。

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?

推荐答案

我能够通过确保VCTargetsPath(和相应的VCTargetsPath12 VS 2013属性)在MSBuild包含一个尾部反斜杠。

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

通过使用sysinternals中的Process Monitor监视devenv.exe进程,发现它由于缺少而加载了无效的路径。添加后,项目属性开始正确显示。

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.

这篇关于当VS2008用作工具集时,Visual Studio 2013显示空项目属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆