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); }