Microsoft.VisualStudio.Project.Output.get_DeploySourceURL C# (CSharp) Method

get_DeploySourceURL() public method

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.
public get_DeploySourceURL ( string &pbstrDeploySourceURL ) : int
pbstrDeploySourceURL string
return int
        public virtual int get_DeploySourceURL(out string pbstrDeploySourceURL)
        {
            string path = output.GetMetadataValue(ProjectFileConstants.FinalOutputPath);
            if(string.IsNullOrEmpty(path))
            {
                throw new InvalidOperationException();
            }
            if(path.Length < 9 || !String.Equals(path.Substring(0, 8), "file:///", StringComparison.OrdinalIgnoreCase))
                path = "file:///" + path; // TODO: does not work with '#' char, see e.g. bug 641942
            pbstrDeploySourceURL = path;
            return VSConstants.S_OK;
        }