Locations of $(StudioUserDir), $(StudioDir), $(TargetsDir), $(ProjectDir)

Comments

3 comments

  • Avatar
    Jon Elliott

    Click "Project > Macros" to view the defined macros and their values.

    They are all read-only system macros defined by CrossStudio apart from $(ProjectDir) which is defined by setting the "Build Options > Project Directory" project property.

    0
    Comment actions Permalink
  • Avatar
    Markus Hammer

    Sorry, maybe I am too stupid. I cannot find the place where to change the $(ProjectDir) for an existing project.

    Choosing Project -> Properties and clicking onto the project name on the left side openes the Build Options table. There is no Project Directory entree.

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    Hi Markus,

    It looks like things have changed a bit since I wrote that post - "ProjectDir" is a read-only project macro, you can view the value by right clicking on the project in the project explorer and selecting "Macros" in the "View" drop-down. As I understand it, the value is set when you create a project however you can modify it by editing the solution as a text file and adding/modifying the project_directory attribute in the common configuration of the project node, for example:

      <project Name="example">
        <configuration Name="Common" project_directory="MyDir"  ...

    Regards,

    Jon

    0
    Comment actions Permalink

Please sign in to leave a comment.