Visual Studio - Where to define custom path macros?

前端 未结 8 1829
别那么骄傲
别那么骄傲 2020-11-28 22:18

I just opened someone else\'s Visual Studio project and in their build properties they have a few custom path macro\'s they are using for their include and lib directories.

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 22:27

    Here the approach is described with pictures: https://sites.google.com/site/pinyotae/Home/visual-studio-visual-c/create-user-defined-environment-variables-macros

    In Visual Studio you need to:

    1. Click in the main menu "View", then "Property Manager"
    2. Right-click in the empty space of "Property Manager" window and in the pop-up menu click "Add New Project Property Sheet"
    3. After adding the property sheet, double click it in the Property Manager window and in the tree on the left select property page "User Macros"
    4. Then you can click "Add Macro" button

    Here is a tutorial on Project Property Sheets: http://www.dorodnic.com/blog/2014/03/20/visual-studio-macros/

提交回复
热议问题