From 459fdd664aeec232e447c2e2bc56a0ecdea97d46 Mon Sep 17 00:00:00 2001 From: Marius Gundersen Date: Fri, 31 May 2019 13:21:34 +0200 Subject: [PATCH] Fixed not working on unix systems because of wrong path separator --- src/Clave.Expressionify.CodeGen/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);