Maybe files that start with .causing issues? Found by https://github.com/aspnet/Configuration/issues/505 Simple repro: ``` [Fact] public void CanAddDotEnvFile() { #if NET451 _basePath = AppDomain.CurrentDomain.GetData("APP_CONTEXT_BASE_DIRECTORY") as string ?? AppDomain.CurrentDomain.BaseDirectory ?? string.Empty; #else _basePath = AppContext.BaseDirectory ?? string.Empty; #endif File.WriteAllText(Path.Combine(_basePath, "works.env"), "foo"); Assert.True(File.Exists(Path.Combine(_basePath, "works.env"))); Assert.True(new PhysicalFileProvider(_basePath).GetFileInfo("works.env").Exists); File.WriteAllText(Path.Combine(_basePath, ".env"), "foo"); Assert.True(File.Exists(Path.Combine(_basePath, ".env"))); Assert.True(new PhysicalFileProvider(_basePath).GetFileInfo(".env").Exists); // Failes } ```
Maybe files that start with .causing issues?
Found by aspnet/Configuration#505
Simple repro: