[xbuild] Fix a string format issue with guid.
authorAnkit Jain <radical@corewars.org>
Fri, 13 Aug 2010 16:07:24 +0000 (21:37 +0530)
committerAnkit Jain <radical@corewars.org>
Fri, 13 Aug 2010 16:14:10 +0000 (21:44 +0530)
Make sure that the format string doesn't have guid in
"{...}" format or String.Format gets confused.

mcs/tools/xbuild/SolutionParser.cs

index d17a67f8f34bbcafea13041284d908806cd3bc62..1d4dea8938053bb97c5a802cc62915f803e9347a 100644 (file)
@@ -246,7 +246,7 @@ namespace Mono.XBuild.CommandLine {
                                                        else
                                                                RaiseWarning (0, String.Format (
                                                                                "{0}: ProjectReference '{1}' not found, neither by guid '{2}' nor by project file name '{3}'.",
-                                                                               filename, bi.Include, projectReferenceGuid, fullpath));
+                                                                               filename, bi.Include, projectReferenceGuid.Replace ("{", "").Replace ("}", ""), fullpath));
                                                }
 
                                        }