Merge pull request #7038 from livarcocc/fix_tools_from_fallback_folder

Changing to use FileStream constructor with FileAccess.Read.
This commit is contained in:
Livar 2017-06-30 12:06:13 -07:00 committed by GitHub
commit 4e91869c1c

View file

@ -15,7 +15,7 @@ namespace Microsoft.DotNet.Cli.Utils
public RuntimeConfig(string runtimeConfigPath) public RuntimeConfig(string runtimeConfigPath)
{ {
JObject runtimeConfigJson; JObject runtimeConfigJson;
using (var streamReader = new StreamReader(new FileStream(runtimeConfigPath, FileMode.Open))) using (var streamReader = new StreamReader(File.OpenRead(runtimeConfigPath)))
{ {
runtimeConfigJson = OpenRuntimeConfig(streamReader); runtimeConfigJson = OpenRuntimeConfig(streamReader);
} }