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

get_CanonicalName() public method

public get_CanonicalName ( string &pbstrCanonicalName ) : int
pbstrCanonicalName string
return int
        public virtual int get_CanonicalName(out string pbstrCanonicalName)
        {
            // Get the output assembly path (including the name)
            pbstrCanonicalName = output.GetMetadataValue(ProjectFileConstants.FinalOutputPath);
            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;
        }

Usage Example

Esempio n. 1
0
 public virtual int get_KeyOutput(out string pbstrCanonicalName)
 {
     pbstrCanonicalName = null;
     if (keyOutput == null)
     {
         Refresh();
     }
     if (keyOutput == null)
     {
         pbstrCanonicalName = String.Empty;
         return(VSConstants.S_FALSE);
     }
     return(keyOutput.get_CanonicalName(out pbstrCanonicalName));
 }
All Usage Examples Of Microsoft.VisualStudio.Project.Output::get_CanonicalName