From 98c26a6c4f64a37d02a00169c756a08c2a57ef69 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 16 Jun 2015 21:46:52 +0200 Subject: [PATCH] Use Path.Combine --- Source/Cvent.SchemaToPoco.Core/JsonSchemaToPoco.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Cvent.SchemaToPoco.Core/JsonSchemaToPoco.cs b/Source/Cvent.SchemaToPoco.Core/JsonSchemaToPoco.cs index 3600a83..04f1966 100644 --- a/Source/Cvent.SchemaToPoco.Core/JsonSchemaToPoco.cs +++ b/Source/Cvent.SchemaToPoco.Core/JsonSchemaToPoco.cs @@ -105,7 +105,7 @@ private void LoadSchemas() // Schemas may refer to eachother, don't add the same schema twice just because it was included by reference if (!_schemas.ContainsKey(key)) { - _schemas.Add(key,resolvedSchemas[key]); + _schemas.Add(key, resolvedSchemas[key]); } } } @@ -133,8 +133,7 @@ private void Generate() { if (!_configuration.Verbose) { - string saveLoc = _configuration.OutputDirectory + Path.DirectorySeparatorChar + entry.Key.Namespace.Replace('.', Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar + entry.Key.Schema.Title + - ".cs"; + string saveLoc = Path.Combine(_configuration.OutputDirectory, entry.Key.Namespace.Replace('.', Path.DirectorySeparatorChar), entry.Key.Schema.Title + ".cs"); IoUtils.GenerateFile(entry.Value, saveLoc); Console.WriteLine("Wrote " + saveLoc); }