private AddDefineSymbol ( string symbol ) : void | ||
symbol | string | |
Résultat | void |
protected override DotNetCompilerParameters OnCreateCompilationParameters(DotNetProjectConfiguration config, ConfigurationKind kind) { var pars = new CSharpCompilerParameters(); if (SupportedPlatforms.Contains(config.Platform)) { pars.PlatformTarget = config.Platform; } if (kind == ConfigurationKind.Debug) { pars.AddDefineSymbol("DEBUG"); } else if (kind == ConfigurationKind.Release) { pars.Optimize = true; } return(pars); }
public ConfigurationParameters CreateCompilationParameters (XmlElement projectOptions) { CSharpCompilerParameters pars = new CSharpCompilerParameters (); if (projectOptions != null) { string platform = projectOptions.GetAttribute ("Platform"); if (SupportedPlatforms.Contains (platform)) pars.PlatformTarget = platform; string debugAtt = projectOptions.GetAttribute ("DefineDebug"); if (string.Compare ("True", debugAtt, true) == 0) pars.AddDefineSymbol ("DEBUG"); } return pars; }
protected override DotNetCompilerParameters OnCreateCompilationParameters (DotNetProjectConfiguration config, ConfigurationKind kind) { var pars = new CSharpCompilerParameters (); if (SupportedPlatforms.Contains (config.Platform)) pars.PlatformTarget = config.Platform; if (kind == ConfigurationKind.Debug) pars.AddDefineSymbol ("DEBUG"); else if (kind == ConfigurationKind.Release) pars.Optimize = true; return pars; }
public ConfigurationParameters CreateCompilationParameters (XmlElement projectOptions) { CSharpCompilerParameters pars = new CSharpCompilerParameters (); if (projectOptions != null) { string platform = projectOptions.GetAttribute ("Platform"); if (SupportedPlatforms.Contains (platform)) pars.PlatformTarget = platform; string debugAtt = projectOptions.GetAttribute ("DefineDebug"); if (string.Compare ("True", debugAtt, StringComparison.OrdinalIgnoreCase) == 0) { pars.AddDefineSymbol ("DEBUG"); pars.DebugType = "full"; } string releaseAtt = projectOptions.GetAttribute ("Release"); if (string.Compare ("True", releaseAtt, StringComparison.OrdinalIgnoreCase) == 0) pars.Optimize = true; } return pars; }