LANCommander/LANCommander.Server/LANCommander.Server.csproj

259 lines
13 KiB
XML
Raw Permalink Normal View History

<Project Sdk="Microsoft.NET.Sdk.Web">
2023-01-02 15:44:04 -06:00
<PropertyGroup>
2023-11-30 00:16:07 -06:00
<TargetFramework>net8.0</TargetFramework>
2023-01-02 15:44:04 -06:00
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>aspnet-LANCommander-C1F79CFA-9767-4AD7-BD5A-2549F8328A2D</UserSecretsId>
2023-04-09 19:28:46 -05:00
<ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
<TypeScriptModuleKind>none</TypeScriptModuleKind>
2024-10-21 10:52:27 +00:00
<Version>1.0.3</Version>
2023-01-02 15:44:04 -06:00
</PropertyGroup>
<PropertyGroup>
<BeautySharedRuntimeMode>False</BeautySharedRuntimeMode>
<!-- beauty into sub-directory, default is libs, quote with "" if contains space -->
<BeautyLibsDir Condition="$(BeautySharedRuntimeMode) == 'True'">../Libraries</BeautyLibsDir>
<BeautyLibsDir Condition="$(BeautySharedRuntimeMode) != 'True'">./Libraries</BeautyLibsDir>
<!-- dlls that you don't want to be moved or can not be moved -->
<!-- <BeautyExcludes>dll1.dll;lib*;...</BeautyExcludes> -->
<!-- dlls that end users never needed, so hide them -->
<!-- <BeautyHiddens>hostfxr;hostpolicy;*.deps.json;*.runtimeconfig*.json</BeautyHiddens> -->
<!-- set to True if you want to disable -->
<DisableBeauty>False</DisableBeauty>
<!-- set to False if you want to beauty on build -->
<BeautyOnPublishOnly>True</BeautyOnPublishOnly>
<!-- DO NOT TOUCH THIS OPTION -->
<BeautyNoRuntimeInfo>False</BeautyNoRuntimeInfo>
<!-- set to True if you want to allow 3rd debuggers(like dnSpy) debugs the app -->
<BeautyEnableDebugging>False</BeautyEnableDebugging>
<!-- the patch can reduce the file count -->
<!-- set to False if you want to disable -->
<!-- SCD Mode Feature Only -->
<BeautyUsePatch>True</BeautyUsePatch>
<!-- App Entry Dll = BeautyDir + BeautyAppHostDir + BeautyAppHostEntry -->
<!-- see https://github.com/nulastudio/NetBeauty2#customize-apphost for more details -->
<!-- relative path based on AppHostDir -->
<!-- .NET Core Non Single-File Only -->
<!-- <BeautyAppHostEntry>bin/MyApp.dll</BeautyAppHostEntry> -->
<!-- relative path based on BeautyDir -->
<!-- .NET Core Non Single-File Only -->
<!-- <BeautyAppHostDir>..</BeautyAppHostDir> -->
<!-- <BeautyAfterTasks></BeautyAfterTasks> -->
<!-- valid values: Error|Detail|Info -->
<BeautyLogLevel>Info</BeautyLogLevel>
<!-- set to a repo mirror if you have troble in connecting github -->
<!-- <BeautyGitCDN>https://gitee.com/liesauer/HostFXRPatcher</BeautyGitCDN> -->
<!-- <BeautyGitTree>master</BeautyGitTree> -->
</PropertyGroup>
2024-10-22 19:54:38 -05:00
<Target Name="CompileGlobalSass" BeforeTargets="Compile">
<Message Text="Compiling global SCSS files" Importance="high" />
<Exec Command="npm run sass" />
</Target>
<ItemGroup>
<ComponentScssFiles Include="**/*/*.scss" Exclude="node_modules/**;wwwroot/**;Styles/**" />
</ItemGroup>
<ItemGroup>
<ComponentScssFiles Remove="node_modules\**" />
<TypeScriptCompile Remove="node_modules\**" />
</ItemGroup>
<ItemGroup>
<Content Remove="package.json;package-lock.json;tsconfig.json;webpack.config.js" />
</ItemGroup>
2023-01-02 15:44:04 -06:00
<PropertyGroup Condition="$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))">
<DefineConstants>WINDOWS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))">
<DefineConstants>LINUX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))">
<DefineConstants>MACOS</DefineConstants>
</PropertyGroup>
2023-01-02 15:44:04 -06:00
<ItemGroup>
2024-10-12 18:33:57 -05:00
<PackageReference Include="AntDesign.Charts" Version="0.5.6" />
2024-01-31 23:23:21 -06:00
<PackageReference Include="ByteSize" Version="2.1.2" />
<PackageReference Include="CoreRCON" Version="5.0.5" />
2024-09-10 23:39:57 -05:00
<PackageReference Include="craftersmine.SteamGridDB.Net" Version="1.1.7" />
<PackageReference Include="Crc32.NET" Version="1.2.0" />
2024-12-06 23:29:32 -06:00
<PackageReference Include="Hangfire.AspNetCore" Version="1.8.16" />
<PackageReference Include="Hangfire.Core" Version="1.8.16" />
<PackageReference Include="Hangfire.InMemory" Version="1.0.0" />
2024-08-11 23:56:23 -05:00
<PackageReference Include="IGDB" Version="5.1.0" />
<PackageReference Include="IPXRelayDotNet" Version="1.1.0" />
2024-10-12 18:33:57 -05:00
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.10">
2023-01-02 15:44:04 -06:00
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
2024-09-10 23:39:57 -05:00
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.6.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
2024-07-26 00:51:38 -05:00
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
2024-10-12 18:33:57 -05:00
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.6" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
2024-06-19 17:19:34 -05:00
<PackageReference Include="Octokit" Version="12.0.0" />
<PackageReference Include="Razor.Templating.Core" Version="2.0.0" />
<PackageReference Include="RegParserDotNet" Version="1.1.1" />
<PackageReference Include="rix0rrr.BeaconLib" Version="1.0.2" />
<PackageReference Include="Semver" Version="2.3.0" />
2024-10-12 18:33:57 -05:00
<PackageReference Include="Serilog" Version="4.0.2" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
2024-08-29 00:19:56 -05:00
<PackageReference Include="Serilog.Sinks.AspNetCore.App.SignalR" Version="1.2.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
WIP fix for MySQL connection concurrency issues This is a large commit. There are a number of things that this commit does to try to fix various issues that were occurring when the database provider was set to MySQL: - The DAL `Repository` has been completely refactored to follow best practices. The repository is now being injected into services instead of the database context itself. This allows the DI to handle the repository's lifetime instead of creating a new repository for every transaction and sharing the context across repositories. As part of these changes, there is no more allowed usage of `IQueryable` and all service/repository methods must actually execute database queries before their return. This is to ensure that the context does not stay open longer than it needs to. Abusing `IQueryable`s by tossing them into Blazor components seems to be a big no-no. - Some deletion behaviors on relationships have been tweaked as MySQL wasn't able to apply migrations with behaviors that were contradictory. - A `ConnectionInterceptor` was added to try to keep track of `DatabaseContext` lifetimes. This is really only for debugging and should be put into `#if DEBUG` regions. This helped identify some potential issues where some contexts were basically never closing, causing the MySQL connector to not function. - Docs for generating migrations have been updated to reflect the addition of being able to specify the database provider and connection string when adding a migration, avoiding the need to edit `Settings.yml` - The application can now be put into a pause state on startup by adding the `--debugger` argument when used from the command line. When a debugger is attached, it resumes execution. - The application can now log to Seq when using debug build - Service lifetime on `DatabaseContext` has switched to transient. This may be reverted in the future. - Lazy loading has been disabled for debugging purposes. It didn't directly help the concurrency issues, but it needs to be tested individually to be re-enabled. - All usage of `UserManager`, `RoleManager`, and `SignInManager` have been removed from all controllers, pages, and Blazor components. Functionality has been moved to `UserService` and `RoleService`. This might have done the most amount of help, but could probably be improved upon in the future by not relying on them and instead having our own implementation. - Application startup migrations and server autostarts have been disabled temporarily. There might be an issue of `DatabaseContext` lifetimes that spawn from this.
2024-10-13 20:42:45 -05:00
<PackageReference Include="Serilog.Sinks.Seq" Version="8.0.0" />
2024-12-06 23:29:32 -06:00
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
2023-02-12 17:32:59 -06:00
<PackageReference Include="swashbuckle" Version="5.6.0" />
2024-10-12 18:33:57 -05:00
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
2024-09-10 23:39:57 -05:00
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="26.2.14" />
2024-10-12 18:33:57 -05:00
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.1" />
<PackageReference Include="YamlDotNet" Version="16.1.3" />
<PackageReference Include="ZiggyCreatures.FusionCache" Version="1.4.0" />
2023-01-02 15:44:04 -06:00
</ItemGroup>
2023-01-04 20:31:02 -06:00
<ItemGroup>
<ProjectReference Include="..\LANCommander.SDK\LANCommander.SDK.csproj" />
<ProjectReference Include="..\LANCommander.Server.Data.MySQL\LANCommander.Server.Data.MySQL.csproj" />
<ProjectReference Include="..\LANCommander.Server.Data.PostgreSQL\LANCommander.Server.Data.PostgreSQL.csproj" />
<ProjectReference Include="..\LANCommander.Server.Data.SQLite\LANCommander.Server.Data.SQLite.csproj" />
<ProjectReference Include="..\LANCommander.Server.Data\LANCommander.Server.Data.csproj" />
<ProjectReference Include="..\LANCommander.Server.Services\LANCommander.Server.Services.csproj" />
2024-06-27 00:29:49 -05:00
<ProjectReference Include="..\LANCommander.Steam\LANCommander.Steam.csproj" />
2024-08-18 15:05:25 -05:00
<ProjectReference Include="..\LANCommander.UI\LANCommander.UI.csproj" />
2023-01-04 20:31:02 -06:00
</ItemGroup>
2024-08-22 00:52:24 -05:00
<ItemGroup>
<Content Update="libman.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
<Content Update="runtimeconfig.template.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Update="favicon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2023-11-17 18:05:26 -06:00
<None Update="Snippets\Examples\Copy Directory.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Create Directory.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Create Registry Path.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Get User Registry Virtual Store.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2024-01-02 20:47:11 -06:00
<None Update="Snippets\Examples\Remove Directory.ps1">
2023-11-17 18:05:26 -06:00
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2024-01-02 20:47:11 -06:00
<None Update="Snippets\Examples\Remove Registry Key.ps1">
2023-11-17 18:05:26 -06:00
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Rename File.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Sanitize Filename.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Set Compatibility Mode.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Set Registry Key.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Examples\Trim String.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2024-01-02 20:47:11 -06:00
<None Update="Snippets\Examples\Write ASCII File.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2023-11-17 18:05:26 -06:00
<None Update="Snippets\Examples\Write to File.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Functions\Convert-AspectRatio.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Functions\ConvertTo-StringBytes.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Functions\Edit-PatchBinary.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Functions\Get-GameManifest.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2024-09-17 19:48:45 -05:00
<None Update="Snippets\Functions\Get-UserCustomField.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2024-07-03 18:51:14 -05:00
<None Update="Snippets\Functions\Update-IniValue.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2023-11-17 18:05:26 -06:00
<None Update="Snippets\Functions\Get-PrimaryDisplay.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2024-09-17 19:48:45 -05:00
<None Update="Snippets\Functions\Update-UserCustomField.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2023-11-17 18:05:26 -06:00
<None Update="Snippets\Functions\Write-ReplaceContentInFile.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2024-01-02 20:47:11 -06:00
<None Update="Snippets\Paths\AppData.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Paths\Documents.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Paths\LocalAppData.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Paths\Registry VirtualStore.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
2023-11-17 18:05:26 -06:00
<None Update="Snippets\Variables\Allocated Key.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Variables\Default Install Directory.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Variables\Game Install Directory.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Variables\Game Manifest.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Variables\New Player Alias.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Variables\Old Player Alias.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Snippets\Variables\Server Address.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Update="wwwroot\js\Upload.ts">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</TypeScriptCompile>
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions>
2023-01-02 15:44:04 -06:00
</Project>