Example #1
0
        public static FileInfo GetOutputFile(this Project project, string ext = ".dll")
        {
            var e = project.GetPropertyValue("TargetExt") ?? ext;

            if (e == "*Undefined*")
            {
                e = ext;
            }
            var outputPath   = project.GetOutputPath();
            var assemblyName = project.GetPropertyValue("AssemblyName") + e;

            return(new FileInfo(Path.Combine(Path.GetDirectoryName(project.FullPath), outputPath, assemblyName)));
        }