diff --git a/src/NvGet.Tools.Shared/Arguments/ConsoleArgsContext.cs b/src/NvGet.Tools.Shared/Arguments/ConsoleArgsContext.cs index b6b55d9..9405f90 100644 --- a/src/NvGet.Tools.Shared/Arguments/ConsoleArgsContext.cs +++ b/src/NvGet.Tools.Shared/Arguments/ConsoleArgsContext.cs @@ -136,7 +136,9 @@ async Task> LoadFromStreamAsync() } else { - using(var jsonTextReader = new JsonTextReader(File.OpenText(inputPathOrUrl))) + var alignedInputPathOrUrl = inputPathOrUrl.Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar); + + using(var jsonTextReader = new JsonTextReader(File.OpenText(alignedInputPathOrUrl))) { return jsonSerializer.Deserialize>(jsonTextReader); }