Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Path.Combine to generate the save location #25

Merged
merged 1 commit into from
Jun 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Source/Cvent.SchemaToPoco.Core/JsonSchemaToPoco.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
}
Expand Down Expand Up @@ -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);
}
Expand Down