GetEvaluatedMetadata() public method

public GetEvaluatedMetadata ( string attributeName ) : string
attributeName string
return string
Esempio n. 1
0
        /// <summary>
        /// This path must start with file:/// if it wants other project
        /// to be able to reference the output on disk.
        /// If the output is not on disk, then this requirement does not
        /// apply as other projects probably don't know how to access it.
        /// </summary>
        public virtual int get_DeploySourceURL(out string pbstrDeploySourceURL)
        {
            string path = output.GetEvaluatedMetadata(ProjectFileConstants.FinalOutputPath);

            if (string.IsNullOrEmpty(path))
            {
                throw new InvalidOperationException();
            }
            if (path.Length < 9 || String.Compare(path.Substring(0, 8), "file:///", StringComparison.OrdinalIgnoreCase) != 0)
            {
                path = "file:///" + path;
            }
            pbstrDeploySourceURL = path;
            return(VSConstants.S_OK);
        }