<Project Sdk="Microsoft.NET.Sdk">

  <!-- ProjectGuid is only included as a requirement for SonarQube analysis -->
  <PropertyGroup>
    <ProjectGuid>{442B5058-DCAF-4263-BB6A-F21E31120A1B}</ProjectGuid>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\MediaBrowser.Controller\MediaBrowser.Controller.csproj" />
    <ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Compile Include="..\SharedVersion.cs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="AsyncKeyedLock" />
    <PackageReference Include="LrcParser" />
    <PackageReference Include="MetaBrainz.MusicBrainz" />
    <PackageReference Include="Microsoft.Extensions.Caching.Abstractions" />
    <PackageReference Include="Microsoft.Extensions.Http" />
    <PackageReference Include="Newtonsoft.Json" />
    <PackageReference Include="PlaylistsNET" />
    <PackageReference Include="SharpCompress" />
    <PackageReference Include="z440.atl.core" />
    <PackageReference Include="TMDbLib" />
  </ItemGroup>

  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
  </PropertyGroup>

  <!-- Code Analyzers -->
  <ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
    <PackageReference Include="IDisposableAnalyzers">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
    <PackageReference Include="SerilogAnalyzer" PrivateAssets="All" />
    <PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" />
    <PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" PrivateAssets="All" />
  </ItemGroup>

  <!-- AudioDb -->
  <ItemGroup>
    <None Remove="Plugins\AudioDb\Configuration\config.html" />
    <EmbeddedResource Include="Plugins\AudioDb\Configuration\config.html" />
    <None Remove="Plugins\AudioDb\jellyfin-plugin-tadb.svg" />
    <EmbeddedResource Include="Plugins\AudioDb\jellyfin-plugin-tadb.svg" />
  </ItemGroup>

  <!-- ListenBrainz -->
  <ItemGroup>
    <None Remove="Plugins\ListenBrainz\Configuration\config.html" />
    <EmbeddedResource Include="Plugins\ListenBrainz\Configuration\config.html" />
    <None Remove="Plugins\ListenBrainz\Configuration\ListenBrainz_logo.svg" />
    <EmbeddedResource Include="Plugins\ListenBrainz\Configuration\ListenBrainz_logo.svg" />
    <None Remove="Plugins\ListenBrainz\Configuration\NOTICE.md" />
    <EmbeddedResource Include="Plugins\ListenBrainz\Configuration\NOTICE.md" />
  </ItemGroup>

  <!-- MusicBrainz -->
  <ItemGroup>
    <None Remove="Plugins\MusicBrainz\Configuration\config.html" />
    <EmbeddedResource Include="Plugins\MusicBrainz\Configuration\config.html" />
    <None Remove="Plugins\MusicBrainz\jellyfin-plugin-musicbrainz.svg" />
    <EmbeddedResource Include="Plugins\MusicBrainz\jellyfin-plugin-musicbrainz.svg" />
  </ItemGroup>

  <!-- Omdb -->
  <ItemGroup>
    <None Remove="Plugins\Omdb\Configuration\config.html" />
    <EmbeddedResource Include="Plugins\Omdb\Configuration\config.html" />
    <None Remove="Plugins\Omdb\jellyfin-plugin-omdb.png" />
    <EmbeddedResource Include="Plugins\Omdb\jellyfin-plugin-omdb.png" />
  </ItemGroup>

  <!-- StudioImages -->
  <ItemGroup>
    <None Remove="Plugins\StudioImages\Configuration\config.html" />
    <EmbeddedResource Include="Plugins\StudioImages\Configuration\config.html" />
    <None Remove="Plugins\StudioImages\jellyfin-plugin-studioimages.svg" />
    <EmbeddedResource Include="Plugins\StudioImages\jellyfin-plugin-studioimages.svg" />
  </ItemGroup>

  <!-- Tmdb -->
  <ItemGroup>
    <None Remove="Plugins\Tmdb\Configuration\config.html" />
    <EmbeddedResource Include="Plugins\Tmdb\Configuration\config.html" />
    <None Remove="Plugins\Tmdb\jellyfin-plugin-tmdb.svg" />
    <EmbeddedResource Include="Plugins\Tmdb\jellyfin-plugin-tmdb.svg" />
  </ItemGroup>
</Project>
