Merge pull request #112 from skolima/master
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Construction / ProjectWhenElement.cs
index 8f27b2af570c38ce5767a1848a76228665af22a8..68040f52c210fa55a53eeb58331fda86c0925304 100644 (file)
@@ -29,6 +29,7 @@
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using Microsoft.Build.Exceptions;
 using Microsoft.Build.Internal;
 
 namespace Microsoft.Build.Construction
@@ -72,7 +73,7 @@ namespace Microsoft.Build.Construction
                                 AppendChild (when);
                                 return when;
                         default:
-                                throw new NotImplementedException (string.Format (
+                                throw new InvalidProjectFileException (string.Format (
                                         "Child \"{0}\" is not a known node type.", name));
                         }
                 }