Skip to content

Commit

Permalink
Disable logging by default in Configuration.cs (#362)
Browse files Browse the repository at this point in the history
- Replace `GeneralSettings.DisableLogging` with `GeneralSettings.EnableLogging` and set it to `false` in `Configuration.cs`
- Map it manually on startup to avoid dotnet/runtime#89732

This should avoid the issue of the binary crashing without `appsettings.json`.
**This doesn't mean it should be used without it**, it will swallow all errors and arnings, but yeah, you can. 

- Add test to ensure that `appsettings.json` are `Configuration.cs` are sync'ed
- Adjust `appsettings` values to Config ones
  • Loading branch information
eduherminio committed Aug 19, 2023
1 parent 872471c commit f1c4d0b
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 10 deletions.
34 changes: 33 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
- name: Build
run: dotnet build -c ${{ matrix.configuration }} /p:DeterministicBuild=true

- name: Run CI tests
- name: Run ${{ matrix.category }} tests
run: dotnet test -c ${{ matrix.configuration }} --no-build --collect:"XPlat Code Coverage" -v normal

- name: '[Ubuntu] Generate test coverage report'
Expand Down Expand Up @@ -239,6 +239,38 @@ jobs:
run: dotnet test -c Release --no-build --filter "TestCategory=${{ matrix.category }}" -v normal
# --collect:"XPlat Code Coverage" https://github.com/coverlet-coverage/coverlet/issues/1192

other-tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
category: [Configuration]
fail-fast: false

steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Nuget cache
uses: actions/cache@v3
with:
path:
~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: dotnet build -c Release

- name: Run ${{ matrix.category }} tests
run: dotnet test -c Release --no-build --filter "TestCategory=${{ matrix.category }}" -v normal --collect:"XPlat Code Coverage"

winning-at-chess:
runs-on: ${{ matrix.os }}

Expand Down
13 changes: 10 additions & 3 deletions src/Lynx.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@
.AddEnvironmentVariables()
.Build();

config.GetRequiredSection(nameof(EngineSettings)).Bind(Configuration.EngineSettings);
config.GetRequiredSection(nameof(GeneralSettings)).Bind(Configuration.GeneralSettings);
config.GetSection(nameof(EngineSettings)).Bind(Configuration.EngineSettings);

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (macos-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (macos-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 23 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.
config.GetSection(nameof(GeneralSettings)).Bind(Configuration.GeneralSettings);

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (macos-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / make-build (macos-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-publish (windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 24 in src/Lynx.Cli/Program.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Bind(IConfiguration, Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Cannot statically analyze the type of instance so its members may be trimmed.

if (!Configuration.GeneralSettings.DisableLogging)
// TODO remove when .NET sdk includes https://github.com/dotnet/runtime/issues/89732
var generalConfig = config.GetSection(nameof(GeneralSettings));
if (bool.TryParse(generalConfig[nameof(Configuration.GeneralSettings.EnableLogging)], out var enableLogging))
{
Configuration.GeneralSettings.EnableLogging = enableLogging;
}

if (Configuration.GeneralSettings.EnableLogging)
{
LogManager.Configuration = new NLogLoggingConfiguration(config.GetSection("NLog"));
}
Expand Down
6 changes: 3 additions & 3 deletions src/Lynx.Cli/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
// Settings that affect the executable behavior
"GeneralSettings": {
"DisableLogging": false // Completely disables logging, both console and file. Alternatively, one or more "NLog.rules" can be removed/tweaked
"EnableLogging": true // logging can be completely disablesd, both console and file, setting this to false. Alternatively, one or more "NLog.rules" can be removed/tweaked
},

// Settings that affect the engine behavior
"EngineSettings": {
"DefaultMaxDepth": 5,
"CoefficientBeforeKeyMovesBeforeMovesToGo": 1.5,
"KeyMovesBeforeMovesToGo": 10,
"CoefficientAfterKeyMovesBeforeMovesToGo": 0.9,
"CoefficientAfterKeyMovesBeforeMovesToGo": 0.95,
"TotalMovesWhenNoMovesToGoProvided": 100,
"FixedMovesLeftWhenNoMovesToGoProvidedAndOverTotalMovesWhenNoMovesToGoProvided": 20,
"FirstTimeLimitWhenNoMovesToGoProvided": 120000,
"FirstCoefficientWhenNoMovesToGoProvided": 3,
"SecondTimeLimitWhenNoMovesToGoProvided": 30000,
"SecondCoefficientWhenNoMovesToGoProvided": 2,
"MinSecurityTime": 1000,
"CoefficientSecurityTime": 0.95,
"CoefficientSecurityTime": 0.90,
"MinDepth": 4,
"MaxDepth": 128,
//"MinMoveTime": 1000,
Expand Down
4 changes: 2 additions & 2 deletions src/Lynx/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static int Hash

public sealed class GeneralSettings
{
public bool DisableLogging { get; set; } = false;
public bool EnableLogging { get; set; } = false;
}

public sealed class EngineSettings
Expand Down Expand Up @@ -133,7 +133,7 @@ public sealed class EngineSettings
#endregion

/// <summary>
/// Min. time left in the clock if all decision time is used befire <see cref="CoefficientSecurityTime"/> is used over that decision time
/// Min. time left in the clock if all decision time is used before <see cref="CoefficientSecurityTime"/> is used over that decision time
/// </summary>
public int MinSecurityTime { get; set; } = 1_000;

Expand Down
14 changes: 14 additions & 0 deletions tests/Lynx.Test/Categories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,23 @@ public static class Categories

public const string LongRunning = "LongRunning";

/// <summary>
/// Need to run in isolation, since other tests might modify <see cref="Configuration"/> values
/// </summary>
public const string Configuration = "Configuration";

/// <summary>
/// Can't be run since it'd take way too long for regular CI
/// </summary>
public const string TooLong = "TooLongToBeRun";

/// <summary>
/// Can't be run since no prunning is required
/// </summary>
public const string NoPruning = "RequireNoPruning";

/// <summary>
/// Can't be run since our engine is simply not good enough yet
/// </summary>
public const string NotGoodEnough = "NotGoodEnough";
}
58 changes: 58 additions & 0 deletions tests/Lynx.Test/ConfigurationTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
using Microsoft.Extensions.Configuration;
using NUnit.Framework;
using System.Text.Json;
using System.Text.Json.Nodes;

namespace Lynx.Test;

[Explicit]
[Category(Categories.Configuration)]
[NonParallelizable]
public class ConfigurationTest
{
[Test]
public void SynchronizedAppSettings()
{
var config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false)
.Build();

var engineSettingsSection = config.GetRequiredSection(nameof(EngineSettings));
Assert.IsNotNull(engineSettingsSection);

#pragma warning disable IL2026 // Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code
var serializedEngineSettingsConfig = JsonSerializer.Serialize(Configuration.EngineSettings);
var jsonNode = JsonSerializer.Deserialize<JsonNode>(serializedEngineSettingsConfig);
#pragma warning restore IL2026 // Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code
Assert.IsNotNull(jsonNode);

#pragma warning disable IL2026 // Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code - using sourcegenerator
engineSettingsSection.Bind(Configuration.EngineSettings);

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / other-tests (ubuntu-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / other-tests (macOS-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / other-tests (windows-latest, Configuration)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / winning-at-chess (ubuntu-latest, WinningAtChess_10seconds)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (ubuntu-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, ubuntu-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (macOS-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, windows-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Debug, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / long-running-tests (windows-latest, LongRunning)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / perft-tests (ubuntu-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / perft-tests (windows-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / fast-tests (Release, macOS-latest)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.

Check warning on line 30 in tests/Lynx.Test/ConfigurationTest.cs

View workflow job for this annotation

GitHub Actions / perft-tests (macOS-latest, Perft)

Binding logic was not generated for a binder call. Unsupported input patterns include generic calls and passing boxed objects.
#pragma warning restore IL2026 // Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code

var reflectionProperties = Configuration.EngineSettings.GetType().GetProperties(
System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);
Assert.GreaterOrEqual(reflectionProperties.Length, 35);

var originalCulture = Thread.CurrentThread.CurrentCulture;
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

Assert.Multiple(() =>
{
foreach (var property in reflectionProperties)
{
if (property.PropertyType == typeof(int[]))
{
continue;
}
var sourceSetting = jsonNode![property.Name]!.ToString().ToLowerInvariant();
var configSetting = property.GetValue(Configuration.EngineSettings)!.ToString()!.ToLowerInvariant();
Assert.AreEqual(sourceSetting, configSetting, $"Error in {property.Name} ({property.PropertyType}): (Configuration.cs) {sourceSetting} != {configSetting} (appSettings.json)");
}
Thread.CurrentThread.CurrentCulture = originalCulture;
});
}
}
3 changes: 2 additions & 1 deletion tests/Lynx.Test/Lynx.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<IsPackable>false</IsPackable>
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator>
</PropertyGroup>

<ItemGroup>
Expand All @@ -16,7 +17,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Lynx\Lynx.csproj" />
<ProjectReference Include="..\..\src\Lynx.Cli\Lynx.Cli.csproj" />
</ItemGroup>

</Project>

0 comments on commit f1c4d0b

Please sign in to comment.