This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 9213cb95404b6caa1bf9d803417d9085ce5a33fe Author: Shad Storhaug <[email protected]> AuthorDate: Sat Mar 27 09:37:51 2021 +0700 lucene-cli: Made appsettings.json file optional (See #453) --- src/dotnet/tools/lucene-cli/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet/tools/lucene-cli/Program.cs b/src/dotnet/tools/lucene-cli/Program.cs index 6063cfa..cc6900b 100644 --- a/src/dotnet/tools/lucene-cli/Program.cs +++ b/src/dotnet/tools/lucene-cli/Program.cs @@ -26,7 +26,7 @@ namespace Lucene.Net.Cli { var configuration = new ConfigurationBuilder() .AddEnvironmentVariables(prefix: "lucene:") // Use a custom prefix to only load Lucene.NET settings - .AddJsonFile("appsettings.json") + .AddJsonFile("appsettings.json", optional: true) .Build(); ConfigurationSettings.SetConfigurationFactory(new ConfigurationFactory(configuration));
