Settings for the server are now combined with the settings from the SDK. This introduces a large breaking change and a migration should be created. This refactor utilizes .NET Configuration and the Options pattern. This will allow for the overriding of any setting using envionment variables. It also means that Settings.yml can be used to override any .NET configuration. A SettingsProvider implementation was created, and any updating of settings was changed from SettingsService.SaveSettings() to SettingsProvider.Update(s => { ... })
24 lines
934 B
XML
24 lines
934 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="AutoMapper" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" />
|
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />
|
|
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\LANCommander.SDK\LANCommander.SDK.csproj" />
|
|
<ProjectReference Include="..\LANCommander.Server.Settings\LANCommander.Server.Settings.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|