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

4
.vscode/tasks.json vendored
View File

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

View File

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