Skip to content

Commit

Permalink
Use single quotes instead of double quotes in debug project start arg…
Browse files Browse the repository at this point in the history
…uments since they are cross platform.
  • Loading branch information
belkiss committed Jan 30, 2021
1 parent cfb534c commit 4dec87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sharpmake/DebugProjectGenerator.cs
Expand Up @@ -256,7 +256,7 @@ public static void SetupProjectOptions(this Project.Configuration conf, string s
if (conf.Target.GetOptimization() == Optimization.Debug)
startArguments += " /debugScripts";

string quote = Util.IsRunningInMono() ? @"\""" : @""""; // When running in Mono, we must escape "
string quote = "\'"; // Use single quote that is cross platform safe
conf.CsprojUserFile.StartArguments = $@"/sources(@{quote}{string.Join(";", MainSources)}{quote}) {startArguments}";
conf.CsprojUserFile.StartProgram = sharpmakeApplicationExePath;
}
Expand Down

0 comments on commit 4dec87b

Please sign in to comment.