-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMediaInfoKeeper.csproj
More file actions
44 lines (41 loc) · 1.94 KB
/
MediaInfoKeeper.csproj
File metadata and controls
44 lines (41 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Description>MediaInfoKeeper Emby plugin</Description>
<PackageTags>emby;plugin;pms;media;server;</PackageTags>
<BaseOutputPath>Build\bin\</BaseOutputPath>
<AssemblyVersion>1.6.6.2</AssemblyVersion>
<FileVersion>1.6.6.2</FileVersion>
<Version>1.6.6</Version>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<None Remove="Resources\\ThumbImage.png" />
<None Remove="Tokenizer\\linux\\libsimple.so" />
<None Remove="Tokenizer\\win\\simple.dll" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\\ThumbImage.png" />
<EmbeddedResource Include="Tokenizer\\linux\\libsimple.so" />
<EmbeddedResource Include="Tokenizer\\win\\simple.dll" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MediaBrowser.Server.Core" Version="4.9.1.90" />
<PackageReference Include="Lib.Harmony" Version="2.4.1" />
<PackageReference Include="SQLitePCL.pretty.core" Version="1.2.2" />
<PackageReference Include="System.Memory" Version="4.6.3" />
</ItemGroup>
<Target Name="CopyHarmony" BeforeTargets="PostBuildEvent">
<PropertyGroup>
<HarmonyPackagePath>$(NuGetPackageRoot)lib.harmony\2.4.1\lib\net5.0\0Harmony.dll</HarmonyPackagePath>
</PropertyGroup>
<Copy SourceFiles="$(HarmonyPackagePath)" DestinationFolder="$(TargetDir)" Condition="Exists('$(HarmonyPackagePath)')" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<PropertyGroup>
<IlRepackExe Condition="'$(OS)'=='Windows_NT'">$(UserProfile)\.dotnet\tools\ilrepack.exe</IlRepackExe>
<IlRepackExe Condition="'$(OS)'!='Windows_NT'">$(HOME)/.dotnet/tools/ilrepack</IlRepackExe>
</PropertyGroup>
<Exec Command="$(IlRepackExe) /out:$(TargetDir)$(TargetFileName) $(TargetPath) $(TargetDir)0Harmony.dll /lib:$(TargetDir)" />
</Target>
</Project>