How to get Project States RRS feed

  • Question

  • Is there a way to get a list of project states - i cannot see this in the api docs.  All possible values for the current project for System.State?


    Tuesday, June 23, 2015 2:18 PM


  • Hi CraigH1984,

    What kind of state do you want to get from the project?

    If it's build state, you could use the SolutionBuild interface, see the code sample in this documentation here:

    SolutionBuild.BuildState Property

    If you just want to get some general project properties, e.g. project name, fullpath, if the project is saved, the project items information and some other properties, you could use DTE object to get the Project object, then use Project object to retrieve the project information.

    How to: Get References to the DTE and DTE2 Objects

    Project Interface

    Project.Properties Property

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Caillen Monday, June 29, 2015 3:40 PM
    Wednesday, June 24, 2015 2:51 AM