Skip to content
Permalink
Browse files

Fix template generation when user name has a space

  • Loading branch information
xen2 committed Jan 24, 2019
1 parent 9e5b1c0 commit 0d0b6db3ca3aba82fd7597951be2361265043e5e
Showing with 8 additions and 3 deletions.
  1. +8 −3 Mono.TextTemplating/Mono.TextTemplating.CodeCompilation/CscCodeCompiler.cs
@@ -124,17 +124,22 @@ void AddIfNotPresent (string asm)
}

foreach (var reference in arguments.AssemblyReferences) {
rsp.Write ("\"-r:");
rsp.Write ("-r:");
rsp.Write ("\"");
rsp.Write (ResolveAssembly (runtime, reference));
rsp.WriteLine ("\"");
}

rsp.Write ("-out:");
rsp.WriteLine (arguments.OutputPath);
rsp.Write ("\"");
rsp.Write (arguments.OutputPath);
rsp.WriteLine ("\"");

//in older versions of csc, these must come last
foreach (var file in arguments.SourceFiles) {
rsp.WriteLine (file);
rsp.Write ("\"");
rsp.Write (file);
rsp.WriteLine ("\"");
}
}

0 comments on commit 0d0b6db

Please sign in to comment.
You can’t perform that action at this time.