MonoDevelop.Projects.Project.GetOutputFileName C# (CSharp) Method

GetOutputFileName() public method

Gets the absolute path to the output file generated by this project.
public GetOutputFileName ( MonoDevelop.Projects.ConfigurationSelector configuration ) : FilePath
configuration MonoDevelop.Projects.ConfigurationSelector /// Build configuration. ///
return FilePath
		public virtual FilePath GetOutputFileName (ConfigurationSelector configuration)
		{
			return FilePath.Null;
		}

Usage Example

Example #1
0
        /// <summary>
        /// Returns the file name to an assembly, regardless of what
        /// type the assembly is.
        /// </summary>
        string GetReferencedFileName(ConfigurationSelector configuration)
        {
            switch (ReferenceType)
            {
            case ReferenceType.Assembly:
                return(reference);

            case ReferenceType.Gac:
                string file = AssemblyContext.GetAssemblyLocation(Reference, package, ownerProject != null? ownerProject.TargetFramework : null);
                return(file == null ? reference : file);

            case ReferenceType.Project:
                if (ownerProject != null)
                {
                    if (ownerProject.ParentSolution != null)
                    {
                        Project p = ownerProject.ParentSolution.FindProjectByName(reference);
                        if (p != null)
                        {
                            return(p.GetOutputFileName(configuration));
                        }
                    }
                }
                return(null);

            default:
                Console.WriteLine("pp: " + Reference + " " + OwnerProject.FileName);
                throw new NotImplementedException("unknown reference type : " + ReferenceType);
            }
        }
All Usage Examples Of MonoDevelop.Projects.Project::GetOutputFileName