Exemple #1
0
            /// <summary>
            /// Calculates and returns the output extension depending on the <see cref="OutputType"/>.
            /// </summary>
            /// <returns>The correct file extension (only exe not .exe).</returns>
            public string GetOutputExtension()
            {
                string extension = string.Empty;

                switch (OutputType.ToLower())
                {
                case "library":
                    extension = "dll";
                    break;

                case "winexe":
                case "exe":
                    extension = "exe";
                    break;

                default:
                    extension = "dll";
                    break;
                }
                return(extension);
            }