diff options
Diffstat (limited to 'main/src/addins')
-rw-r--r-- | main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/Configuration/ScaffoldingConfig.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/Configuration/ScaffoldingConfig.cs b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/Configuration/ScaffoldingConfig.cs index dcdcf06d89..0becd87caa 100644 --- a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/Configuration/ScaffoldingConfig.cs +++ b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/Configuration/ScaffoldingConfig.cs @@ -83,10 +83,12 @@ namespace Microsoft.WebTools.Scaffolding.Core.Config // fallback to embedded resource stream = typeof (ScaffoldingConfig).Assembly.GetManifestResourceStream ("ScaffoldingPackageVersions.json"); } - - using var streamReader = new StreamReader (stream); - var json = await streamReader.ReadToEndAsync (); - fetchedConfig = JsonConvert.DeserializeObject<ScaffoldingConfig> (json); + + var serializer = new JsonSerializer (); + + using var sr = new StreamReader (stream); + using var jsonTextReader = new JsonTextReader (sr); + return serializer.Deserialize<ScaffoldingConfig> (jsonTextReader); } return fetchedConfig; } |