[xbuild] ToolTask - make error column check a little non-specific.
authorAnkit Jain <radical@corewars.org>
Mon, 28 Feb 2011 10:57:43 +0000 (16:27 +0530)
committerAnkit Jain <radical@corewars.org>
Mon, 28 Feb 2011 10:57:43 +0000 (16:27 +0530)
mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs

index 4e88792a64963aa182faccdd1dc9602a1af1462a..4094c122e3b9e9afc86574ece4e1ea98afbd9cb9 100644 (file)
@@ -258,7 +258,7 @@ namespace Microsoft.Build.Utilities
                        string col = match.Result ("${column}");
                        int columnNumber = 0;
                        if (!string.IsNullOrEmpty (col))
-                               columnNumber = col == "255+" ? -1 : Int32.Parse (col);
+                               columnNumber = col.IndexOf ("+") >= 0 ? -1 : Int32.Parse (col);
 
                        string category = match.Result ("${level}");
                        string code = match.Result ("${number}");