-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCompressedFileViewer.plugin.csproj
More file actions
142 lines (124 loc) · 6.37 KB
/
Copy pathCompressedFileViewer.plugin.csproj
File metadata and controls
142 lines (124 loc) · 6.37 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(ProjectDir)Properties\NppDir.props" />
<Import Project="$(ProjectDir)Properties\Zip.targets" />
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<Nullable>enable</Nullable>
<EnableDynamicLoading>true</EnableDynamicLoading>
<Platforms>x64;x86</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DnneNativeBinaryName>CompressedFileViewer</DnneNativeBinaryName>
<RootNamespace>CompressedFileViewer</RootNamespace>
<PackageId>CompressedFileViewer</PackageId>
<Authors>Pascal Krenckel</Authors>
<Product>CompressedFileViewer</Product>
<Description>This is a Notepad++ plugin to open and store files in gzip, bzip2, xz, zstd or brotli format.</Description>
<Copyright>Copyright © Pascal Krenckel 2026</Copyright>
<PackageProjectUrl>https://github.com/Pascal-Krenckel/CompressedFileViewer</PackageProjectUrl>
<RepositoryUrl>https://github.com/Pascal-Krenckel/CompressedFileViewer</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>5.1.0</Version>
<AssemblyVersion>5.1.0.0</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>gzip-filled.png</PackageIcon>
<EnableDynamicLoading>true</EnableDynamicLoading>
<ApplicationIcon>icons\gzip.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Compile Remove="publish\**" />
<EmbeddedResource Remove="publish\**" />
<None Remove="publish\**" />
<Page Remove="publish\**" />
</ItemGroup>
<ItemGroup>
<None Remove="icons\gzip-filled16.png" />
<None Remove="icons\gzip.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="icons\gzip-filled16.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DNNE" Version="2.1.2" />
<PackageReference Include="Joveler.Compression.XZ" Version="5.0.2" />
<PackageReference Include="SharpZipLib" Version="1.4.2" />
<PackageReference Include="System.Drawing.Common" Version="10.0.9" />
<PackageReference Include="ZstdSharp.Port" Version="0.8.8" />
</ItemGroup>
<ItemGroup>
<Resource Include="icons\gzip.png" />
</ItemGroup>
<ItemGroup>
<Compile Update="Windows\BrotliSettings.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\BZip2SettingsDialog.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\DecompressDialog.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\XZSettingsDialog.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\ZstdSettingsDialog.xaml.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="icons\gzip-filled.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<PropertyGroup Condition="'$(Platform)'=='x86'">
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<PlatformTarget>x86</PlatformTarget>
<NppDir>$(NppDir32)</NppDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x64'">
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PlatformTarget>x64</PlatformTarget>
<NppDir>$(NppDir64)</NppDir>
</PropertyGroup>
<!-- =========================
SDK Discovery
========================= -->
<Target Name="FindSdkVersion" BeforeTargets="Build">
<Exec Command="powershell -NoProfile -ExecutionPolicy Bypass -File "$(MSBuildProjectDirectory)\Build\Find-SdkVersion.ps1"" ConsoleToMSBuild="true" IgnoreExitCode="true">
<Output TaskParameter="ConsoleOutput" PropertyName="WindowsSdkVersion" />
</Exec>
<PropertyGroup>
<WindowsSdkVersion>$([System.String]::Copy('$(WindowsSdkVersion)').Trim())</WindowsSdkVersion>
<WindowsKitsRoot>$([System.String]::Copy('$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot10)').Trim())</WindowsKitsRoot>
<RcExePath>$(WindowsKitsRoot)bin\$(WindowsSdkVersion)\x64\rc.exe</RcExePath>
</PropertyGroup>
</Target>
<!-- =========================
RC Compilation
========================= -->
<Target Name="CompileResources" BeforeTargets="CoreCompile" DependsOnTargets="FindSdkVersion">
<Message Text="RC disabled (rc.exe not found)" Condition="!Exists('$(RcExePath)')" Importance="High" />
<PropertyGroup Condition="Exists('$(RcExePath)')">
<WindowsSdkInclude>$(WindowsKitsRoot)Include\$(WindowsSdkVersion)\um;$(WindowsKitsRoot)Include\$(WindowsSdkVersion)\shared</WindowsSdkInclude>
<Win32Resources>$(MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)$(DnneNativeBinaryName).res</Win32Resources>
<DnneLinkerUserFlags>$(Win32Resources)</DnneLinkerUserFlags>
<VersionMajor>$([System.Version]::Parse('$(AssemblyVersion)').Major)</VersionMajor>
<VersionMinor>$([System.Version]::Parse('$(AssemblyVersion)').Minor)</VersionMinor>
<VersionBuild>$([System.Version]::Parse('$(AssemblyVersion)').Build)</VersionBuild>
<VersionRevision>$([System.Version]::Parse('$(AssemblyVersion)').Revision)</VersionRevision>
</PropertyGroup>
<Exec Condition="Exists('$(RcExePath)')" Command=""$(RcExePath)" /I "$(WindowsSdkInclude)" /d VERSION_MAJOR=$(VersionMajor) /d VERSION_MINOR=$(VersionMinor) /d VERSION_BUILD=$(VersionBuild) /d VERSION_REVISION=$(VersionRevision) /d COMMENTS="\"$(Description)\"" /d COMPANY_NAME="\"$(Company)\"" /d FILE_DESCRIPTION="\"$(Description)\"" /d FILE_VERSION="\"$(AssemblyVersion)\"" /d INTERNAL_NAME="\"$(DnneNativeBinaryName).dll\"" /d LEGAL_COPYRIGHT="\"$(Copyright)\"" /d ORIGINAL_FILENAME="\"$(DnneNativeBinaryName).dll\"" /d PRODUCT_NAME="\"$(Product)\"" /d PRODUCT_VERSION="\"$(Version)\"" /fo "$(Win32Resources)" "$(MSBuildProjectDirectory)\Build\$(DnneNativeBinaryName).rc"" />
</Target>
<Target Name="CopyFiles" AfterTargets="PostBuildEvent" Condition=" Exists('$(NppDir)\plugins') AND '$(NppDir)' != '' ">
<ItemGroup>
<Binaries Include="$(ProjectDir)$(OutDir)**\*.*" />
</ItemGroup>
<RemoveDir Directories="$(NppDir)\plugins\CompressedFileViewer" />
<!-- Remove old files -->
<MakeDir Directories="$(NppDir)\plugins\CompressedFileViewer" />
<Copy SourceFiles="@(Binaries)" DestinationFolder="$(NppDir)\plugins\CompressedFileViewer" />
</Target>
</Project>