Merge pull request #7038 from livarcocc/fix_tools_from_fallback_folder
Changing to use FileStream constructor with FileAccess.Read.
This commit is contained in:
commit
4e91869c1c
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
public RuntimeConfig(string runtimeConfigPath)
|
||||
{
|
||||
JObject runtimeConfigJson;
|
||||
using (var streamReader = new StreamReader(new FileStream(runtimeConfigPath, FileMode.Open)))
|
||||
using (var streamReader = new StreamReader(File.OpenRead(runtimeConfigPath)))
|
||||
{
|
||||
runtimeConfigJson = OpenRuntimeConfig(streamReader);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue