Пример #1
0
        public static string AsExtension(this CompileOutputType compileOutputType)
        {
            switch (compileOutputType)
            {
            case CompileOutputType.ConsoleApplication:
                return(".exe");

            case CompileOutputType.DynamicallyLinkedLibrary:
                return(".dll");

            case CompileOutputType.NetModule:
                return(".xyz");

            case CompileOutputType.WindowsApplication:
                return(".exe");

            case CompileOutputType.WindowsRuntimeApplication:
                return("");

            case CompileOutputType.WindowsRuntimeMetadata:
                return("");

            default:
                return(".exe");
            }
        }
Пример #2
0
        public static string AsString(this CompileOutputType compileOutputType)
        {
            switch (compileOutputType)
            {
            case CompileOutputType.ConsoleApplication:
                return("exe");

            case CompileOutputType.DynamicallyLinkedLibrary:
                return("library");

            case CompileOutputType.NetModule:
                return("module");

            case CompileOutputType.WindowsApplication:
                return("winexe");

            case CompileOutputType.WindowsRuntimeApplication:
                return("");

            case CompileOutputType.WindowsRuntimeMetadata:
                return("");

            default:
                return("exe");
            }
        }