Add "warnings as errors" support for nant and monodevelop to Prebuild (though monodevelop may ignore this).

0.6.0-stable
Jeff Ames 2008-03-25 07:49:31 +00:00
parent 301c25950d
commit e3ca113075
3 changed files with 6 additions and 1 deletions

View File

@ -245,7 +245,7 @@ namespace Prebuild.Core.Targets
ss.WriteLine(" />"); ss.WriteLine(" />");
ss.Write(" <Execution"); ss.Write(" <Execution");
ss.Write(" runwithwarnings=\"True\""); ss.Write(" runwithwarnings=\"{0}\"", !conf.Options.WarningsAsErrors);
ss.Write(" consolepause=\"True\""); ss.Write(" consolepause=\"True\"");
ss.Write(" runtime=\"{0}\"", netRuntime); ss.Write(" runtime=\"{0}\"", netRuntime);
ss.Write(" clr-version=\"Net_2_0\""); ss.Write(" clr-version=\"Net_2_0\"");

View File

@ -283,6 +283,11 @@ namespace Prebuild.Core.Targets
break; break;
} }
foreach (ConfigurationNode conf in project.Configurations) foreach (ConfigurationNode conf in project.Configurations)
{
ss.Write(" warnaserror=\"{0}\"", conf.Options.WarningsAsErrors);
break;
}
foreach (ConfigurationNode conf in project.Configurations)
{ {
ss.Write(" define=\"{0}\"", conf.Options.CompilerDefines); ss.Write(" define=\"{0}\"", conf.Options.CompilerDefines);
break; break;

Binary file not shown.