Microsoft.VisualStudio.Project.ProjectNode.GetProjectProperty C# (CSharp) Method

GetProjectProperty() public method

Get value of Project property
public GetProjectProperty ( string propertyName ) : string
propertyName string Name of Property to retrieve
return string
        public string GetProjectProperty(string propertyName)
        {
            return this.GetProjectProperty(propertyName, true);
        }

Same methods

ProjectNode::GetProjectProperty ( string propertyName, bool resetCache ) : string

Usage Example

Esempio n. 1
0
        public int get_CanonicalName(out string pbstrCanonicalName)
        {
            // Get the output assembly path (including the name)
            pbstrCanonicalName = project.GetProjectProperty(ProjectFileConstants.TargetPath);
            Debug.Assert(!String.IsNullOrEmpty(pbstrCanonicalName), "Output Assembly not defined");

            // Make sure we have a full path
            if (!System.IO.Path.IsPathRooted(pbstrCanonicalName))
            {
                pbstrCanonicalName = new Url(project.BaseURI, pbstrCanonicalName).AbsoluteUrl;
            }
            return(VSConstants.S_OK);
        }
All Usage Examples Of Microsoft.VisualStudio.Project.ProjectNode::GetProjectProperty
ProjectNode