/// <devdoc> /// <para> /// Initializes a new instance of <see cref='Microsoft.CodeDom.Compiler.CompilerParameters'/> using the specified /// assembly names, output name and a whether to include debug information flag. /// </para> /// </devdoc> public CompilerParameters(string[] assemblyNames, string outputName, bool includeDebugInformation) { if (assemblyNames != null) { ReferencedAssemblies.AddRange(assemblyNames); } _outputName = outputName; _includeDebugInformation = includeDebugInformation; }
public CompilerParameters(String[] assemblyNames, String outputName, bool includeDebugInformation) { this.outputName = outputName; this.includeDebugInformation = includeDebugInformation; this.warningLevel = -1; if (assemblyNames != null) { ReferencedAssemblies.AddRange(assemblyNames); } }
public OptionSet CreateOptions() { return(new OptionSet { { "a|async", "Generate async methods.", v => GenerateAsync = v != null }, { "config=", "Configuration file names to generate.", v => ConfigFiles.AddRange(v.Split(',')) }, { "i|internal", "Generate types as internal.", v => GenerateTypesAsInternal = v != null }, { "l|language=", "Specify target code {LANGUAGE}. Default is 'csharp'.", v => Language = v }, { "monotouch", "Generate MonoTouch client. (This option may vanish)", v => GenerateMonoTouchProxy = v != null }, { "moonlight", "Generate moonlight client. (This option may vanish)", v => GenerateMoonlightProxy = v != null }, { "n|namespace=", "Code namespace name to generate.", v => Namespace = v }, { "noConfig", "Do not generate config file.", v => NoConfig = v != null }, { "noLogo", "Do not show tool logo.", v => NoLogo = v != null }, { "o|out=", "Output code filename.", v => OutputFilename = v }, { "r|reference=", "Referenced assembly files.", v => ReferencedAssemblies.AddRange(v.Split(',')) }, { "tcv|targetClientVersion:", "Indicate target client version. Valid values:\n" + " Version35", v => { if (v == null) { return; } switch (v.ToLowerInvariant()) { case "version35": TargetClientVersion35 = true; break; } } }, { "tm|typedMessage", "Generate typed messages.", v => GenerateTypedMessages = v != null }, { "usage", "Show usage syntax and exit.", v => Usage = v != null }, { "V|version", "Display version and licensing information.", v => Version = v != null }, { "h|?|help", "Show this help list.", v => Help = v != null }, }); }