Fixed plugin template to build and copy correctly, allowing settings button to show and the plugin to register. (#84)

This commit is contained in:
T-Gander 2025-11-23 06:19:48 -07:00 committed by GitHub
parent d544b71939
commit 6277846394
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

2
.vscode/launch.json vendored
View File

@ -7,7 +7,7 @@
"name": "Launch",
"request": "launch",
"preLaunchTask": "build-and-copy",
"program": "${config:jellyfinDir}/bin/Debug/net8.0/jellyfin.dll",
"program": "${config:jellyfinDir}/bin/Debug/net9.0/jellyfin.dll",
"args": [
//"--nowebclient"
"--webdir",

4
.vscode/tasks.json vendored
View File

@ -60,14 +60,14 @@
"command": "cp",
"windows": {
"args": [
"./${config:pluginName}/bin/Debug/net8.0/publish/*",
"./${config:pluginName}/bin/Debug/net9.0/publish/*",
"${config:jellyfinWindowsDataDir}/plugins/${config:pluginName}/"
]
},
"linux": {
"args": [
"-r",
"./${config:pluginName}/bin/Debug/net8.0/publish/*",
"./${config:pluginName}/bin/Debug/net9.0/publish/*",
"${config:jellyfinLinuxDataDir}/plugins/${config:pluginName}/"
]
}

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>Jellyfin.Plugin.Template</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@ -11,8 +11,12 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Jellyfin.Controller" Version="10.9.11" />
<PackageReference Include="Jellyfin.Model" Version="10.9.11" />
<PackageReference Include="Jellyfin.Controller" Version="10.9.11" >
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="Jellyfin.Model" Version="10.9.11">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>