Add "warnings as errors" support for nant and monodevelop to Prebuild (though monodevelop may ignore this).
parent
301c25950d
commit
e3ca113075
|
@ -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\"");
|
||||||
|
|
|
@ -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;
|
||||||
|
|
BIN
bin/Prebuild.exe
BIN
bin/Prebuild.exe
Binary file not shown.
Loading…
Reference in New Issue