[xbuild] Vbc task - make error column check a little non-specific.
authorAnkit Jain <radical@corewars.org>
Tue, 1 Mar 2011 11:24:45 +0000 (16:54 +0530)
committerAnkit Jain <radical@corewars.org>
Tue, 1 Mar 2011 11:40:52 +0000 (17:10 +0530)
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Vbc.cs

index e6867abc885c79837d02da7df747318a8d4c7e07..81fa3cd7eb486c7f3e021599f66fe64260fd450d 100644 (file)
@@ -183,7 +183,7 @@ namespace Microsoft.Build.Tasks {
                        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}");