diff --git a/src/Clave.Expressionify.CodeGen/Program.cs b/src/Clave.Expressionify.CodeGen/Program.cs index 6fe7e41..2d4e8cd 100644 --- a/src/Clave.Expressionify.CodeGen/Program.cs +++ b/src/Clave.Expressionify.CodeGen/Program.cs @@ -45,7 +45,7 @@ public static int Main(string[] args) if (properties.Any()) { var newClass = root.WithOnlyTheseProperties(properties); - var newPath = $@"{projectPath}\obj\CodeGen\{path}"; + var newPath = Path.Combine(projectPath, "obj", "CodeGen", path); Directory.CreateDirectory(Path.GetDirectoryName(newPath)); File.WriteAllText(newPath, newClass); Console.WriteLine(newPath);