How can i get evaluation of $(w) macro in C# Project Programmically? RRS feed

  • Question

  • Hi,

    I want to know how to get eva;uation of  $(w) macro in C# Project.

    I tried googling searching for anwser. But i've not found any related answer. 

    Thursday, March 7, 2013 9:01 AM


  • Hi,

    Did you define the custom macro w in the propertygroup?

    If yes, we can get it like:

    foreach (BuildPropertyGroup pg in project.PropertyGroups)
                    BuildProperty propertyToRemove = null;
                    foreach (BuildProperty property in pg)
                        if (property.Name == "w")

    Best regards,

    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Ego Jiang Wednesday, March 13, 2013 2:21 AM
    • Marked as answer by Ego Jiang Tuesday, March 19, 2013 1:35 AM
    Friday, March 8, 2013 2:44 AM