File: KeePassRPC.csproj

package info (click to toggle)
keepass2-plugin-keepassrpc 2.0.2%2Bdfsg2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,304 kB
  • sloc: cs: 29,001; makefile: 14
file content (610 lines) | stat: -rw-r--r-- 27,155 bytes parent folder | download
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <PropertyGroup>
    <LangVersion>5</LangVersion>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{4C1BB6F8-D2CD-49C2-9053-21705681356C}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>KeePassRPC</RootNamespace>
    <AssemblyName>KeePassRPC</AssemblyName>
    <SignAssembly>false</SignAssembly>
    <AssemblyOriginatorKeyFile>
    </AssemblyOriginatorKeyFile>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>3.5</OldToolsVersion>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <SccProjectName>
    </SccProjectName>
    <SccLocalPath>
    </SccLocalPath>
    <SccAuxPath>
    </SccAuxPath>
    <SccProvider>
    </SccProvider>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>false</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
    <TargetFrameworkProfile>
    </TargetFrameworkProfile>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <UseVSHostingProcess>true</UseVSHostingProcess>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <UseVSHostingProcess>true</UseVSHostingProcess>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleasePLGX|AnyCPU' ">
    <OutputPath>bin\ReleasePLGX\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <Optimize>true</Optimize>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>AnyCPU</PlatformTarget>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'teast|AnyCPU'">
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Analyse|AnyCPU'">
    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="DomainPublicSuffix">
      <HintPath>.\DomainPublicSuffix.dll</HintPath>
    </Reference>
    <Reference Include="Fleck2">
      <HintPath>.\Fleck2.dll</HintPath>
    </Reference>
    <Reference Include="Jayrock, Version=0.9.12915.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Jayrock.dll</HintPath>
    </Reference>
    <Reference Include="Jayrock.Json, Version=0.9.12915.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Jayrock.Json.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Configuration" />
    <Reference Include="System.Configuration.Install" />
    <Reference Include="System.Data" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Management" />
    <Reference Include="System.Security" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
    <Reference Include="KeePass">
      <HintPath Condition="'$(OS)' == 'Windows_NT'">$(USERPROFILE)\KeePassDEV\KeePass.exe</HintPath>
      <HintPath Condition="'$(OS)' != 'Windows_NT'">$(home)/keepass-dev/KeePass.exe</HintPath>
      <HintPath Condition="'$(OS)' != 'Windows_NT'">/usr/lib/keepass2/KeePass.exe</HintPath>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="BigInteger.cs" />
    <Compile Include="DatabaseConfig.cs" />
    <Compile Include="DpiFix.cs" />
    <Compile Include="Extensions.cs" />
    <Compile Include="Forms\AuthForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\AuthForm.Designer.cs">
      <DependentUpon>AuthForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\DatabaseSettingsUserControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms\DatabaseSettingsUserControl.Designer.cs">
      <DependentUpon>DatabaseSettingsUserControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\KeeEntryUserControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms\KeeEntryUserControl.Designer.cs">
      <DependentUpon>KeeEntryUserControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\KeeFieldForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\KeeFieldForm.Designer.cs">
      <DependentUpon>KeeFieldForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\KeeGroupUserControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms\KeeGroupUserControl.Designer.cs">
      <DependentUpon>KeeGroupUserControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\KeeMAMOverride.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\KeeMAMOverride.Designer.cs">
      <DependentUpon>KeeMAMOverride.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\KeeMultiEntryUserControl.cs">
      <SubType>UserControl</SubType>
    </Compile>
    <Compile Include="Forms\KeeMultiEntryUserControl.Designer.cs">
      <DependentUpon>KeeMultiEntryUserControl.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\KeeURLForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\KeeURLForm.Designer.cs">
      <DependentUpon>KeeURLForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\KeyCreationSimpleForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\KeyCreationSimpleForm.designer.cs">
      <DependentUpon>KeyCreationSimpleForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\LocationManager.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\LocationManager.Designer.cs">
      <DependentUpon>LocationManager.cs</DependentUpon>
    </Compile>
    <Compile Include="Forms\WelcomeForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\WelcomeForm.Designer.cs">
      <DependentUpon>WelcomeForm.cs</DependentUpon>
    </Compile>
    <Compile Include="IconCache.cs" />
    <Compile Include="JsonRpc\ClientMetadata.cs" />
    <Compile Include="JsonRpc\IJsonRpcClientMetadataProperty.cs" />
    <Compile Include="JsonRpc\IJsonRpcRequestLifetimeNotice.cs" />
    <Compile Include="JsonRpc\KprpcJsonRpcDispatcher.cs" />
    <Compile Include="JsonRpc\KprpcJsonRpcService.cs" />
    <Compile Include="KeePassRPCClient.cs" />
    <Compile Include="KeePassRPCExt.cs">
    </Compile>
    <Compile Include="KeePassRPCServer.cs" />
    <Compile Include="KeePassRPCService.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="Forms\OptionsForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="Forms\OptionsForm.Designer.cs">
      <DependentUpon>OptionsForm.cs</DependentUpon>
    </Compile>
    <Compile Include="KeePassRPCService.DTOV1.cs" />
    <Compile Include="KeePassRPCService.DTOV2.cs" />
    <Compile Include="KeePassRPCService.JSONRPC.cs" />
    <Compile Include="KeyChallengeResponse.cs" />
    <Compile Include="KeyContainerClass.cs" />
    <Compile Include="MatchAccuracyMethod.cs" />
    <Compile Include="Models\DataExchange\ApplicationMetadata.cs" />
    <Compile Include="Models\DataExchange\AuthenticationResult.cs" />
    <Compile Include="Models\DataExchange\Configuration.cs" />
    <Compile Include="Models\DataExchange\Database.cs" />
    <Compile Include="Models\DataExchange\Utilities.cs" />
    <Compile Include="Models\DataExchange\Entry.cs" />
    <Compile Include="Models\DataExchange\Error.cs" />
    <Compile Include="Models\DataExchange\ErrorCode.cs" />
    <Compile Include="Models\DataExchange\Group.cs" />
    <Compile Include="Models\DataExchange\JSONRPCContainer.cs" />
    <Compile Include="Models\DataExchange\KeyParams.cs" />
    <Compile Include="Models\DataExchange\KPRPCMessage.cs" />
    <Compile Include="Models\DataExchange\LightEntry.cs" />
    <Compile Include="Models\DataExchange\LoginSearchType.cs" />
    <Compile Include="Models\DataExchange\MatchAccuracy.cs" />
    <Compile Include="Models\DataExchange\MatchAccuracyEnum.cs" />
    <Compile Include="Models\DataExchange\Signal.cs" />
    <Compile Include="Models\DataExchange\SRPParams.cs" />
    <Compile Include="Models\DataExchange\V2\Database2.cs" />
    <Compile Include="Models\DataExchange\V2\DatabasesAndIcons.cs" />
    <Compile Include="Models\DataExchange\V2\Entry2.cs" />
    <Compile Include="Models\DataExchange\V2\Group2.cs" />
    <Compile Include="Models\DataExchange\V2\Icon.cs" />
    <Compile Include="Models\DataExchange\V2\LightEntry2.cs" />
    <Compile Include="Models\GuidService.cs" />
    <Compile Include="Models\IGuidService.cs" />
    <Compile Include="Models\Persistent\EntryConfigv1.cs" />
    <Compile Include="Models\Persistent\EntryConfigv2.cs" />
    <Compile Include="Models\Shared\EntryAutomationBehaviour.cs" />
    <Compile Include="Models\Shared\EntryMatcher.cs" />
    <Compile Include="Models\Shared\EntryMatcherConfig.cs" />
    <Compile Include="Models\Shared\EntryMatcherType.cs" />
    <Compile Include="Models\Shared\Field.cs" />
    <Compile Include="Models\Shared\FieldMatcherConfig.cs" />
    <Compile Include="Models\Shared\FieldMatcherType.cs" />
    <Compile Include="Models\Shared\FormField.cs" />
    <Compile Include="Models\Shared\FieldMatcher.cs" />
    <Compile Include="Models\Shared\FormFieldType.cs" />
    <Compile Include="Models\Shared\MatchAction.cs" />
    <Compile Include="Models\Shared\MatcherLogic.cs" />
    <Compile Include="Models\Shared\FieldType.cs" />
    <Compile Include="Models\Shared\PlaceholderHandling.cs" />
    <Compile Include="Models\Shared\ResolvedField.cs" />
    <Compile Include="Native.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="RPCClientManagers.cs" />
    <Compile Include="SecureEdit.cs" />
    <Compile Include="SRP.cs" />
    <Compile Include="URLSummary.cs" />
    <Compile Include="Utils.cs" />
    <Compile Include="DPIScaledToolStripMenuItem.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="IconConverter.cs" />
    <Compile Include="WebSocketServerConfig.cs" />
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
      <Visible>False</Visible>
      <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Forms\AuthForm.resx">
      <DependentUpon>AuthForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\DatabaseSettingsUserControl.resx">
      <DependentUpon>DatabaseSettingsUserControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\KeeEntryUserControl.resx">
      <DependentUpon>KeeEntryUserControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\KeeFieldForm.resx">
      <DependentUpon>KeeFieldForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\KeeGroupUserControl.resx">
      <DependentUpon>KeeGroupUserControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\KeeMAMOverride.resx">
      <DependentUpon>KeeMAMOverride.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\KeeMultiEntryUserControl.resx">
      <DependentUpon>KeeMultiEntryUserControl.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\KeeURLForm.resx">
      <DependentUpon>KeeURLForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\KeyCreationSimpleForm.resx">
      <DependentUpon>KeyCreationSimpleForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\LocationManager.resx">
      <DependentUpon>LocationManager.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\OptionsForm.resx">
      <DependentUpon>OptionsForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Forms\WelcomeForm.resx">
      <DependentUpon>WelcomeForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <SubType>Designer</SubType>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <None Include="KeePassRPCDiagram.cd" />
    <None Include="Resources\buttonGradient.png" />
    <None Include="Resources\buttonGradientHover.png" />
    <None Include="Resources\kprpc.ico" />
    <None Include="Resources\vkprpckey64.png" />
    <None Include="Resources\vkprpckey16.png" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
  <PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
    <PostBuildEvent>
      echo POSTBUILDSTEP for $(ProjectName)

      set KPDir=$(USERPROFILE)\KeePassDEV\
      set KPPDir=%25KPDir%25plugins\
      set KPPTempDir=%25KPPDir%25$(ProjectName)

      IF NOT "$(ConfigurationName)"=="Debug" Goto :NotDebug
      REM In debug mode we want to move the generated DLLs and PDBs to the plugins
      REM directory so we can easily set breakpoints, etc.

      REM delete the PLGX from any previous ReleasePLGX build
      del /Q "%25KPPDir%25$(ProjectName).plgx"
      REM if errorlevel 1 goto BuildEventFailed
      echo Release plgx deleted

      REM copy output DLLs to KeePass plugins directory
      copy "$(ProjectName).dll" "%25KPPDir%25\$(ProjectName).dll"
      copy "$(ProjectName).pdb" "%25KPPDir%25\$(ProjectName).pdb"
      if errorlevel 1 goto BuildEventFailed
      copy "Jayrock.dll" "%25KPPDir%25\Jayrock.dll"
      copy "Jayrock.Json.dll" "%25KPPDir%25\Jayrock.Json.dll"
      copy "Fleck2.dll" "%25KPPDir%25\Fleck2.dll"
      copy "DomainPublicSuffix.dll" "%25KPPDir%25\DomainPublicSuffix.dll"
      if errorlevel 1 goto BuildEventFailed
      echo Debug DLLs copied to plugins directory

      goto BuildEventOK

      :NotDebug
      IF NOT "$(ConfigurationName)"=="ReleasePLGX" Goto :NotReleasePlgx
      REM In release mode we want to make sure that we are working with the PLGX version.
      REM This prevents debugging so should only be used when packaging a plgx file for
      REM distribution.

      REM delete the DLLs from any previous Debug build
      del /Q "%25KPPDir%25$(ProjectName).dll"
      if errorlevel 1 goto BuildEventFailed
      del /Q "%25KPPDir%25\Jayrock.dll"
      del /Q "%25KPPDir%25\Jayrock.Json.dll"
      del /Q "%25KPPDir%25\Fleck2.dll"
      del /Q "%25KPPDir%25\DomainPublicSuffix.dll"
      if errorlevel 1 goto BuildEventFailed
      echo Debug DLLs deleted

      REM create temporary directory
      rmdir /S /Q "%25KPPTempDir%25"
      mkdir "%25KPPTempDir%25"
      if errorlevel 1 goto BuildEventFailed
      echo Temporary directory created

      REM copy relevant project files to temporary directory
      REM (for simple KeePass plugins you may need to
      REM copy only *.cs files and .csproj file)
      copy "Jayrock.dll" "%25KPPTempDir%25\Jayrock.dll"
      copy "Jayrock.Json.dll" "%25KPPTempDir%25\Jayrock.Json.dll"
      copy "Fleck2.dll" "%25KPPTempDir%25\Fleck2.dll"
      copy "DomainPublicSuffix.dll" "%25KPPTempDir%25\DomainPublicSuffix.dll"
      if errorlevel 1 goto BuildEventFailed
      copy "$(ProjectDir)*.cs" "%25KPPTempDir%25"
      if errorlevel 1 goto BuildEventFailed
      copy "$(ProjectDir)$(ProjectName).csproj" "%25KPPTempDir%25\$(ProjectName).csproj"
      if errorlevel 1 goto BuildEventFailed
      mkdir "%25KPPTempDir%25\Forms"
      copy "$(ProjectDir)Forms\*.cs" "%25KPPTempDir%25\Forms"
      copy "$(ProjectDir)Forms\*.resx" "%25KPPTempDir%25\Forms"
      if errorlevel 1 goto BuildEventFailed
      mkdir "%25KPPTempDir%25\Models"
      mkdir "%25KPPTempDir%25\Models\DataExchange"
      mkdir "%25KPPTempDir%25\Models\DataExchange\V2"
      mkdir "%25KPPTempDir%25\Models\Persistent"
      mkdir "%25KPPTempDir%25\Models\Shared"
      copy "$(ProjectDir)Models\DataExchange\"*.cs "%25KPPTempDir%25\Models\DataExchange"
      copy "$(ProjectDir)Models\DataExchange\V2\"*.cs "%25KPPTempDir%25\Models\DataExchange\V2"
      copy "$(ProjectDir)Models\Persistent\"*.cs "%25KPPTempDir%25\Models\Persistent"
      copy "$(ProjectDir)Models\Shared\"*.cs "%25KPPTempDir%25\Models\Shared"
      copy "$(ProjectDir)Models\"*.cs "%25KPPTempDir%25\Models"
      if errorlevel 1 goto BuildEventFailed
      mkdir "%25KPPTempDir%25\JsonRpc"
      copy "$(ProjectDir)JsonRpc\"*.cs "%25KPPTempDir%25\JsonRpc"
      if errorlevel 1 goto BuildEventFailed

      mkdir "%25KPPTempDir%25\Properties"
      copy "$(ProjectDir)Properties\AssemblyInfo.cs" "%25KPPTempDir%25\Properties\AssemblyInfo.cs"
      copy "$(ProjectDir)Properties\Resources.resx" "%25KPPTempDir%25\Properties\Resources.resx"
      copy "$(ProjectDir)Properties\Resources.Designer.cs" "%25KPPTempDir%25\Properties\Resources.Designer.cs"
      mkdir "%25KPPTempDir%25\Resources"
      copy "$(ProjectDir)Resources\*.png" "%25KPPTempDir%25\Resources"
      copy "$(ProjectDir)Resources\*.ico" "%25KPPTempDir%25\Resources"
      if errorlevel 1 goto BuildEventFailed
      echo Files copied to temporary directory

      REM create the PLGX
      "%25KPDir%25KeePass.exe" --plgx-create "%25KPPTempDir%25" --plgx-prereq-kp:2.48
      if errorlevel 1 goto BuildEventFailed
      echo PLGX created

      REM delete the temporary directory and its contents
      rem rmdir /S /Q "%25KPPTempDir%25"
      if errorlevel 1 goto BuildEventFailed
      echo Temporary directory deleted

      goto BuildEventOK


      :NotReleasePlgx
      echo Invalid configuration selected. Please choose a different build configuration
      echo or modify the post-build script to add support for this configuration.

      :BuildEventFailed
      echo POSTBUILDSTEP for $(ProjectName) FAILED
      exit 1

      :BuildEventOK
      echo POSTBUILDSTEP for $(ProjectName) COMPLETED OK</PostBuildEvent>
  </PropertyGroup>
  <PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
    <PostBuildEvent>
      #!/bin/bash
      #set -ex
      echo POSTBUILDSTEP for $(ProjectName)

      # Run all cp command with -a argument
      cp() { command cp -a "$@"; }

      export KPDir="${HOME}/keepass-dev/"
      export KPPDir=${PWD}/Plugins/
      export KPPTempDir="${KPPDir}$(ProjectName)"
            
      mkdir -p "${KPPTempDir}"

      # delete the PLGX from any previous ReleasePLGX build
      rm -f "${KPPDir}$(ProjectName).plgx"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED; exit 1; fi
      echo Release plgx deleted

      # copy output DLLs to KeePass plugins directory
      cp "$(ProjectName).dll" "${KPPDir}$(ProjectName).dll"
      if [ -f "$(ProjectName).pdb" ]; then cp "$(ProjectName).pdb" "${KPPDir}$(ProjectName).pdb"; fi
      
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED; exit 1; fi
            
      cp "Jayrock.dll" "${KPPDir}Jayrock.dll"
      cp "Jayrock.Json.dll" "${KPPDir}Jayrock.Json.dll"
      cp "Fleck2.dll" "${KPPDir}Fleck2.dll"
      cp "DomainPublicSuffix.dll" "${KPPDir}DomainPublicSuffix.dll"
      
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED; exit 1; fi
            
      echo Debug DLLs copied to plugins directory

      echo POSTBUILDSTEP for $(ProjectName) COMPLETED OK</PostBuildEvent>
  </PropertyGroup>
  <PropertyGroup Condition="'$(OS)' != 'Windows_NT' AND '$(ConfigurationName)' == 'ReleasePLGX'">
    <PostBuildEvent>
      #!/bin/bash
      #set -ex
      echo POSTBUILDSTEP for $(ProjectName)

      # Run all cp command with -a argument
      cp() { command cp -a "$@"; }

      export KPDir="${HOME}/keepass-dev/"
      export KPPDir=${PWD}/Plugins/
      export KPPTempDir="${KPPDir}$(ProjectName)"

      echo KPDir: ${KPDir}
      echo KPPDir: ${KPPDir}
      echo KPPTempDir: ${KPPTempDir}
            
      rm -f "${KPPDir}$(ProjectName).dll"
      rm -f "${KPPDir}$(ProjectName).pdb"
      rm -f "${KPPDir}Jayrock.dll"
      rm -f "${KPPDir}Jayrock.Json.dll"
      rm -f "${KPPDir}Fleck2.dll"
      rm -f "${KPPDir}DomainPublicSuffix.dll"
      echo Debug DLLs deleted
      
      # create temporary directory
      rm -rf "${KPPTempDir}"
      mkdir -p "${KPPTempDir}"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - prep temp dir; exit 1; fi
      echo Temporary directory created
      
      # copy relevant project files to temporary directory
      # (for simple KeePass plugins you may need to
      # copy only *.cs files and .csproj file)
      cp "Jayrock.dll" "${KPPTempDir}\Jayrock.dll"
      cp "Jayrock.Json.dll" "${KPPTempDir}\Jayrock.Json.dll"
      cp "Fleck2.dll" "${KPPTempDir}\Fleck2.dll"
      cp "DomainPublicSuffix.dll" "${KPPTempDir}\DomainPublicSuffix.dll"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - copy DLL deps; exit 1; fi
            
      cp "$(ProjectDir)"*.cs "${KPPTempDir}"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - copy source files; exit 1; fi
      cp "$(ProjectDir)$(ProjectName).csproj" "${KPPTempDir}\$(ProjectName).csproj"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - copy csproj; exit 1; fi
            
      mkdir "${KPPTempDir}\Forms"
      cp "$(ProjectDir)Forms\"*.cs "${KPPTempDir}\Forms"
      cp "$(ProjectDir)Forms\"*.resx "${KPPTempDir}\Forms"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - copy forms sources; exit 1; fi
            
      mkdir "${KPPTempDir}\Models"
      mkdir "${KPPTempDir}\Models\DataExchange"
      mkdir "${KPPTempDir}\Models\DataExchange\V2"
      mkdir "${KPPTempDir}\Models\Persistent"
      mkdir "${KPPTempDir}\Models\Shared"
      cp "$(ProjectDir)Models\DataExchange\"*.cs "${KPPTempDir}\Models\DataExchange"
      cp "$(ProjectDir)Models\DataExchange\V2\"*.cs "${KPPTempDir}\Models\DataExchange\V2"
      cp "$(ProjectDir)Models\Persistent\"*.cs "${KPPTempDir}\Models\Persistent"
      cp "$(ProjectDir)Models\Shared\"*.cs "${KPPTempDir}\Models\Shared"
      cp "$(ProjectDir)Models\"*.cs "${KPPTempDir}\Models"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - copy Models sources; exit 1; fi
            
      mkdir "${KPPTempDir}\JsonRpc"
      cp "$(ProjectDir)JsonRpc\"*.cs "${KPPTempDir}\JsonRpc"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - copy JsonRpc sources; exit 1; fi
            
      mkdir "${KPPTempDir}\Properties"
      cp "$(ProjectDir)Properties\AssemblyInfo.cs" "${KPPTempDir}\Properties\AssemblyInfo.cs"
      cp "$(ProjectDir)Properties\Resources.resx" "${KPPTempDir}\Properties\Resources.resx"
      cp "$(ProjectDir)Properties\Resources.Designer.cs" "${KPPTempDir}\Properties\Resources.Designer.cs"
      mkdir "${KPPTempDir}\Resources"
      cp "$(ProjectDir)Resources\"*.png "${KPPTempDir}\Resources"
      cp "$(ProjectDir)Resources\"*.ico "${KPPTempDir}\Resources"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - copy properties and resources; exit 1; fi
            
      echo Files copied to temporary directory

      # create the PLGX
      # Attempt to achieve reproducible build, but not sufficient:
      # See also https://sourceforge.net/p/keepass/feature-requests/2872/
      # find ${KPPTempDir} -exec touch -d @$SOURCE_DATE_EPOCH '{}' "%3B"
      # touch -d @$SOURCE_DATE_EPOCH ${KPPTempDir}/*.dll
      # faketime @$SOURCE_DATE_EPOCH keepass2 ...
      keepass2 --plgx-create "${KPPTempDir}" --plgx-prereq-kp:2.48
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - create PLGX; exit 1; fi
      echo PLGX created

      rm -rf "${KPPTempDir}"
      if [ $? = 1 ]; then echo POSTBUILDSTEP for $(ProjectName) FAILED - temp dir tidy up; exit 1; fi
      echo Temporary directory deleted
            
      echo POSTBUILDSTEP for $(ProjectName) COMPLETED OK</PostBuildEvent>
  </PropertyGroup>
</Project>