[xbuild] Quote filenames for resgen.
authorAnkit Jain <radical@corewars.org>
Tue, 31 Aug 2010 11:59:31 +0000 (17:29 +0530)
committerAnkit Jain <radical@corewars.org>
Tue, 31 Aug 2010 11:59:31 +0000 (17:29 +0530)
Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs:
Quote filenames passed to resgen.

mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs

index 1d8ef5e84a918c2708b79987f89f9b6b0b1ae57d..9c1f6450fd09bf944aac6dc5cd911f639dad6a24 100644 (file)
@@ -291,7 +291,7 @@ namespace Microsoft.Build.Tasks {
                        if (UseSourcePath)
                                commandLine.AppendSwitch ("/useSourcePath");
 
-                       commandLine.AppendSwitch (String.Format ("/compile {0}{1}", SourceFile,
+                       commandLine.AppendSwitch (String.Format ("/compile \"{0}{1}\"", SourceFile,
                                                OutputFile != null ? "," + OutputFile : ""));
                }