Skip to content

Commit 999e583

Browse files
[dotnet] Removed {{separator}} token from C# filename codegen (#13237)
* Remove separator from codegen. This caused file names in the format of Accesibility{{separator}}AXPropertyName.cs for instance. * Added {{separator}} replacement to Utility.cs ReplaceTokensInPath function.
1 parent 06519c9 commit 999e583

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

third_party/dotnet/devtools/src/generator/CodeGen/CodeGenerationDefinitionTemplateSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace OpenQA.Selenium.DevToolsGenerator.CodeGen
1+
namespace OpenQA.Selenium.DevToolsGenerator.CodeGen
22
{
33
using Newtonsoft.Json;
44

third_party/dotnet/devtools/src/generator/CodeGen/Utility.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public static string ReplaceTokensInPath(string path, string className, CodeGene
2626
path = path.Replace("{{templatePath}}", settings.TemplatesPath);
2727
path = path.Replace("{{domainName}}", context.Domain.Name);
2828
path = path.Replace('\\', System.IO.Path.DirectorySeparatorChar);
29+
path = path.Replace("{{separator}}", System.IO.Path.DirectorySeparatorChar.ToString());
2930
return path;
3031
}
3132

0 commit comments

Comments
 (0)