【C++系列】VC++ Directories editing in Tools>Options has been deprecated解决方法

来源:互联网 发布:网络挂号,厦门中医院 编辑:程序博客网 时间:2024/06/05 03:56

背景

    因需要C++与lua配合使用,在VS2012中配置VC++全局环境变量时,出现"VC++ Directories editing in Tools>Options has been deprecated".

    如图所示:

官方解答

  1. Open up property manager by clicking on View.Property Manager.
  2. Expand the project node and then the Configuration|Platform nodes, you will see "Microsoft.cpp.<Platform>.users" file for each Configuration|Platform. These are the files for the global settings, similar to the old tools/Options/VC++ Directories.
  3. Multi-Select "Microsoft.cpp.<Platform>.users", right click and bring up the property page window.
  4. In the property page window, click on "VC++ Directories" (for example) in the left pane, add new paths for the directories such as "Include Directories". separated by semicolons.
  5. Make sure to save the settings before shutting down Visual Studio.
  6. Re-launch Visual Studio and the new settings will be in effect.

解释

      英文较简单,一目了然。

      就个人的设置步骤稍作描述:

  1. 打开任一项目;通过view->Property Manager,打开Property Manager界面;
  2. 打开Property Manager下所有子节点;
  3. 选择Debug|WIin32,打开其子节点;
  4. 选择Microsoft.Cpp.Win32.user,双击之

如果所示:

根据提示输入相关路径即可。

        注意保存设置。

        重新打开VS即可。

   

 

 

 

原创粉丝点击