Multi-target the plugin against net9.0 (Jellyfin 10.11.x) and net10.0 (Jellyfin 12.0.x), with per-framework Jellyfin.Controller/Model references. Jellyfin 12 added a controlling-session parameter to ISessionManager.ReportCapabilities; an empty value skips the AssertCanControl check, which is what a server-side registration needs. Each release now ships two packages, jellylms_<version>_jf11.zip and jellylms_<version>_jf12.zip, with a manifest entry each. Jellyfin filters by targetAbi, so both can share a version number. Also corrects the manifest targetAbi for new releases from 10.10.0.0 to 10.11.0.0 - the plugin has referenced 10.11 packages since 1.0.0. jprm only reads ./build.yaml, so build-plugin.sh swaps targetAbi/framework per variant and restores the file afterwards. The builder image moves to the .NET 10 SDK, which targets both frameworks. CA1873 (new in that SDK) is disabled alongside CA1848, same rationale. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
53 lines
2.1 KiB
XML
53 lines
2.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<!--
|
|
Multi-targeted against the two supported Jellyfin server generations:
|
|
net9.0 -> Jellyfin 10.11.x (targetAbi 10.11.0.0)
|
|
net10.0 -> Jellyfin 12.0.x (targetAbi 12.0.0.0)
|
|
jprm builds one framework at a time (see build.yaml / build.jf12.yaml).
|
|
-->
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net9.0;net10.0</TargetFrameworks>
|
|
<RootNamespace>Jellyfin.Plugin.JellyLMS</RootNamespace>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<Nullable>enable</Nullable>
|
|
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
|
|
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
|
|
<PackageReference Include="Jellyfin.Controller" Version="10.11.0">
|
|
<ExcludeAssets>runtime</ExcludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Jellyfin.Model" Version="10.11.0">
|
|
<ExcludeAssets>runtime</ExcludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
|
|
<PackageReference Include="Jellyfin.Controller" Version="12.0.0">
|
|
<ExcludeAssets>runtime</ExcludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Jellyfin.Model" Version="12.0.0">
|
|
<ExcludeAssets>runtime</ExcludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
|
|
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="All" />
|
|
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="Configuration\configPage.html" />
|
|
<EmbeddedResource Include="Configuration\configPage.html" />
|
|
<None Remove="Web\RemoteControl.html" />
|
|
<EmbeddedResource Include="Web\RemoteControl.html" />
|
|
<None Remove="Web\remote-button.js" />
|
|
<EmbeddedResource Include="Web\remote-button.js" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|