-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMLVScan.csproj
More file actions
402 lines (369 loc) · 22.7 KB
/
MLVScan.csproj
File metadata and controls
402 lines (369 loc) · 22.7 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
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
<Project Sdk="Microsoft.NET.Sdk">
<!-- Import local.build.props first so UseLocalMLVScanCore is available -->
<Import Project="local.build.props" Condition="Exists('local.build.props')" />
<!-- ============================================ -->
<!-- Shared Properties (both configurations) -->
<!-- ============================================ -->
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<EnableMlvScanProfiling>false</EnableMlvScanProfiling>
<RootNamespace>MLVScan</RootNamespace>
<IsPackable>false</IsPackable>
<Version>2.0.2</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<InformationalVersion>$(Version)</InformationalVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<Configurations>MelonLoader;BepInEx5;BepInEx6Mono;BepInEx6IL2CPP</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(EnableMlvScanProfiling)' == 'true'">
<DefineConstants>$(DefineConstants);MLVSCAN_PROFILING</DefineConstants>
</PropertyGroup>
<!-- ============================================ -->
<!-- Additional NuGet Sources for BepInEx -->
<!-- ============================================ -->
<PropertyGroup Condition="'$(Configuration)'=='BepInEx5' or '$(Configuration)'=='BepInEx6Mono' or '$(Configuration)'=='BepInEx6IL2CPP'">
<RestoreAdditionalProjectSources>
https://api.nuget.org/v3/index.json;
https://nuget.bepinex.dev/v3/index.json
</RestoreAdditionalProjectSources>
</PropertyGroup>
<!-- ============================================ -->
<!-- MelonLoader Configuration -->
<!-- ============================================ -->
<PropertyGroup Condition="'$(Configuration)'=='MelonLoader'">
<DefineConstants>$(DefineConstants);MELONLOADER</DefineConstants>
<AssemblyName>MLVScan.MelonLoader</AssemblyName>
<NoWarn>$(NoWarn);MSB3277</NoWarn>
</PropertyGroup>
<!-- ============================================ -->
<!-- BepInEx 5.x Configuration -->
<!-- ============================================ -->
<PropertyGroup Condition="'$(Configuration)'=='BepInEx5'">
<DefineConstants>$(DefineConstants);BEPINEX</DefineConstants>
<AssemblyName>MLVScan.BepInEx5</AssemblyName>
</PropertyGroup>
<!-- ============================================ -->
<!-- BepInEx 6.x Mono Configuration -->
<!-- ============================================ -->
<PropertyGroup Condition="'$(Configuration)'=='BepInEx6Mono'">
<DefineConstants>$(DefineConstants);BEPINEX;BEPINEX6;BEPINEX6_MONO</DefineConstants>
<AssemblyName>MLVScan.BepInEx6.Mono</AssemblyName>
</PropertyGroup>
<!-- ============================================ -->
<!-- BepInEx 6.x IL2CPP Configuration -->
<!-- ============================================ -->
<PropertyGroup Condition="'$(Configuration)'=='BepInEx6IL2CPP'">
<TargetFramework>net6.0</TargetFramework>
<DefineConstants>$(DefineConstants);BEPINEX;BEPINEX6;BEPINEX6_IL2CPP</DefineConstants>
<AssemblyName>MLVScan.BepInEx6.IL2CPP</AssemblyName>
</PropertyGroup>
<!-- ============================================ -->
<!-- Excluded files from default compilation -->
<!-- ============================================ -->
<ItemGroup>
<None Remove="LOCAL_DEV_GUIDE.md" />
<None Remove="AGENTS.md" />
<None Remove="nexuspost.bbcode" />
<None Remove="renovate.json" />
<None Remove="TS-Post.md" />
<None Remove="example.png" />
<None Remove="icon.png" />
<None Remove="ENVIRONMENT_INTEGRATION_GUIDE.md" />
<None Remove="bump-version.ps1" />
</ItemGroup>
<!-- ============================================ -->
<!-- Shared Source Files (both configurations) -->
<!-- ============================================ -->
<ItemGroup>
<Compile Include="$(IntermediateOutputPath)Generated\MLVScanBuildInfo.g.cs" Visible="false" />
<Compile Include="PlatformConstants.cs" />
<Compile Include="Abstractions\IConfigManager.cs" />
<Compile Include="Abstractions\IPlatformEnvironment.cs" />
<Compile Include="Models\MLVScanConfig.cs" />
<Compile Include="Services\ConsentMessageHelper.cs" />
<Compile Include="Services\PluginScannerBase.cs" />
<Compile Include="Services\Caching\AtomicFileStorage.cs" />
<Compile Include="Services\Caching\CrossPlatformFileIdentityProvider.cs" />
<Compile Include="Services\Caching\IFileIdentityProvider.cs" />
<Compile Include="Services\Caching\IScanCacheSigner.cs" />
<Compile Include="Services\Caching\IScanCacheStore.cs" />
<Compile Include="Services\Caching\RuntimeInformationHelper.cs" />
<Compile Include="Services\Caching\ScanCacheEnvelopeCodec.cs" />
<Compile Include="Services\Caching\ScanCacheModels.cs" />
<Compile Include="Services\Caching\ScanCacheSigner.cs" />
<Compile Include="Services\Caching\SecureScanCacheStore.cs" />
<Compile Include="Services\Diagnostics\LoaderScanTelemetryHub.cs" />
<Compile Include="Services\Resolution\AssemblyResolverCatalogBuilder.cs" />
<Compile Include="Services\Resolution\CatalogingAssemblyResolverProviderBase.cs" />
<Compile Include="Services\Resolution\IResolverCatalogProvider.cs" />
<Compile Include="Services\Resolution\IndexedAssemblyResolver.cs" />
<Compile Include="Services\Resolution\ResolverCatalogModels.cs" />
<Compile Include="Services\Scope\TargetAssemblyScopeFilter.cs" />
<Compile Include="Services\PluginDisablerBase.cs" />
<Compile Include="Services\DeveloperReportGenerator.cs" />
<Compile Include="Services\IlDumpService.cs" />
<Compile Include="Services\PromptGeneratorService.cs" />
<Compile Include="Services\HashUtility.cs" />
<Compile Include="Services\Configuration\LegacyConfigCleanup.cs" />
<Compile Include="Services\ReportUploadService.cs" />
<Compile Include="Services\RedactionHelper.cs" />
<Compile Include="Services\ThreatVerdictBuilder.cs" />
<Compile Include="Services\ThreatVerdictTextFormatter.cs" />
<Compile Include="Models\SubmissionMetadata.cs" />
<Compile Include="Models\ThreatVerdictKind.cs" />
<Compile Include="Models\ThreatVerdictInfo.cs" />
</ItemGroup>
<!-- ============================================ -->
<!-- MelonLoader-Specific Source Files -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='MelonLoader'">
<Compile Include="MelonLoader\MelonLoaderPlugin.cs" />
<Compile Include="MelonLoader\MelonLoaderServiceFactory.cs" />
<Compile Include="MelonLoader\Adapters\MelonScanLogger.cs" />
<Compile Include="MelonLoader\Adapters\GameAssemblyResolverProvider.cs" />
<Compile Include="MelonLoader\MelonConfigManager.cs" />
<Compile Include="MelonLoader\MelonEnvironment.cs" />
<Compile Include="MelonLoader\MelonPluginScanner.cs" />
<Compile Include="MelonLoader\MelonPluginDisabler.cs" />
</ItemGroup>
<!-- ============================================ -->
<!-- BepInEx-Specific Source Files -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='BepInEx5'">
<Compile Include="BepInEx\5\BepInEx5Patcher.cs" />
<Compile Include="BepInEx\Adapters\BepInExScanLogger.cs" />
<Compile Include="BepInEx\Adapters\BepInExAssemblyResolverProvider.cs" />
<Compile Include="BepInEx\BepInExConfigManager.cs" />
<Compile Include="BepInEx\BepInExEnvironment.cs" />
<Compile Include="BepInEx\BepInExPluginScanner.cs" />
<Compile Include="BepInEx\BepInExPluginDisabler.cs" />
<Compile Include="BepInEx\BepInExReportGenerator.cs" />
</ItemGroup>
<!-- ============================================ -->
<!-- BepInEx 6.x Mono Source Files -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='BepInEx6Mono'">
<Compile Include="BepInEx\6\Mono\BepInEx6MonoPatcher.cs" />
<Compile Include="BepInEx\BepInExConsentPlugin.cs" />
<Compile Include="BepInEx\Adapters\BepInExScanLogger.cs" />
<Compile Include="BepInEx\Adapters\BepInExAssemblyResolverProvider.cs" />
<Compile Include="BepInEx\BepInExConfigManager.cs" />
<Compile Include="BepInEx\BepInExEnvironment.cs" />
<Compile Include="BepInEx\BepInExPluginScanner.cs" />
<Compile Include="BepInEx\BepInExPluginDisabler.cs" />
<Compile Include="BepInEx\BepInExReportGenerator.cs" />
</ItemGroup>
<!-- ============================================ -->
<!-- BepInEx 6.x IL2CPP Source Files -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='BepInEx6IL2CPP'">
<Compile Include="BepInEx\6\IL2CPP\BepInEx6IL2CppPatcher.cs" />
<Compile Include="BepInEx\BepInExIl2CppConsentPlugin.cs" />
<Compile Include="BepInEx\Adapters\BepInExScanLogger.cs" />
<Compile Include="BepInEx\Adapters\BepInExAssemblyResolverProvider.cs" />
<Compile Include="BepInEx\BepInExConfigManager.cs" />
<Compile Include="BepInEx\BepInExEnvironment.cs" />
<Compile Include="BepInEx\BepInExPluginScanner.cs" />
<Compile Include="BepInEx\BepInExPluginDisabler.cs" />
<Compile Include="BepInEx\BepInExReportGenerator.cs" />
</ItemGroup>
<!-- ============================================ -->
<!-- MelonLoader References -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='MelonLoader'">
<!-- Use NuGet packages when local paths are not set -->
<PackageReference Include="LavaGang.MelonLoader" Version="0.7.0" GeneratePathProperty="true" Condition="'$(MelonLoaderPath)' == ''" />
<PackageReference Include="UnityEngine.CoreModule" Version="*" Condition="'$(GameManagedPath)' == ''" />
<PackageReference Include="UnityEngine.IMGUIModule" Version="*" Condition="'$(GameManagedPath)' == ''" />
<!-- Use local references when paths are set -->
<Reference Include="MelonLoader" Condition="'$(MelonLoaderPath)' != ''">
<HintPath>$(MelonLoaderPath)\MelonLoader.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="0Harmony" Condition="'$(MelonLoaderPath)' != ''">
<HintPath>$(MelonLoaderPath)\0Harmony.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule" Condition="'$(GameManagedPath)' != ''">
<HintPath>$(GameManagedPath)\UnityEngine.CoreModule.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule" Condition="'$(GameManagedPath)' != ''">
<HintPath>$(GameManagedPath)\UnityEngine.IMGUIModule.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
<!-- ============================================ -->
<!-- BepInEx 5.x References -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='BepInEx5'">
<!-- Use NuGet package for BepInEx 5.x (compilation only) -->
<PackageReference Include="BepInEx.Core" Version="5.*" PrivateAssets="all" GeneratePathProperty="true"
Condition="'$(BepInExCorePath)' == ''" />
<PackageReference Include="BepInEx.BaseLib" Version="5.4.20" PrivateAssets="all" GeneratePathProperty="true"
Condition="'$(BepInExCorePath)' == ''" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" PrivateAssets="all"
Condition="'$(BepInExCorePath)' == ''" />
<PackageReference Include="System.Text.Json" Version="6.0.11" />
<!-- Or use local reference if BepInExCorePath is set -->
<Reference Include="BepInEx" Private="false" Condition="'$(BepInExCorePath)' != ''">
<HintPath>$(BepInExCorePath)\BepInEx.dll</HintPath>
</Reference>
<Reference Include="0Harmony" Private="false" Condition="'$(BepInExCorePath)' != ''">
<HintPath>$(BepInExCorePath)\0Harmony.dll</HintPath>
</Reference>
</ItemGroup>
<!-- ============================================ -->
<!-- BepInEx 6.x Mono References -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='BepInEx6Mono'">
<PackageReference Include="BepInEx.Core" Version="6.0.0-be.*" IncludeAssets="compile" GeneratePathProperty="true" />
<PackageReference Include="BepInEx.Unity.Mono" Version="6.0.0-be.*" IncludeAssets="compile" GeneratePathProperty="true" />
<PackageReference Include="BepInEx.Unity.Mono.Preloader" Version="6.0.0-be.*" IncludeAssets="compile" GeneratePathProperty="true" />
<PackageReference Include="BepInEx.Preloader.Core" Version="6.0.0-be.*" IncludeAssets="compile" GeneratePathProperty="true" />
<PackageReference Include="System.Text.Json" Version="6.0.11" />
<PackageReference Include="UnityEngine" Version="5.6.1" />
<PackageReference Include="UnityEngine.CoreModule" Version="2020.3.0" />
<PackageReference Include="UnityEngine.IMGUIModule" Version="2020.3.0" />
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" />
</ItemGroup>
<!-- ============================================ -->
<!-- BepInEx 6.x IL2CPP References -->
<!-- ============================================ -->
<ItemGroup Condition="'$(Configuration)'=='BepInEx6IL2CPP'">
<PackageReference Include="BepInEx.Core" Version="6.0.0-be.*" IncludeAssets="compile" GeneratePathProperty="true" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.*" IncludeAssets="compile" GeneratePathProperty="true" />
<PackageReference Include="BepInEx.Preloader.Core" Version="6.0.0-be.*" IncludeAssets="compile" GeneratePathProperty="true" />
<PackageReference Include="System.Text.Json" Version="6.0.11" />
<!-- IL2CPP games expose Unity types from module assemblies, not the legacy monolithic UnityEngine.dll. -->
<PackageReference Include="UnityEngine.CoreModule" Version="2020.3.0" />
<PackageReference Include="UnityEngine.IMGUIModule" Version="2020.3.0" />
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(NuGetPackageRoot)unityengine.coremodule\2020.3.0\UnityEngine.CoreModule.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>$(NuGetPackageRoot)unityengine.imguimodule\2020.3.0\UnityEngine.IMGUIModule.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
<!-- ============================================ -->
<!-- Shared Package References -->
<!-- ============================================ -->
<ItemGroup>
<!-- Use NuGet package when UseLocalMLVScanCore is not true -->
<PackageReference Include="MLVScan.Core" Version="*" GeneratePathProperty="true"
Condition="'$(UseLocalMLVScanCore)' != 'true'" />
<!-- Use local MLVScan.Core project when UseLocalMLVScanCore is true -->
<ProjectReference Include="..\MLVScan.Core\MLVScan.Core.csproj"
Condition="'$(UseLocalMLVScanCore)' == 'true'" />
<PackageReference Include="ILRepack" Version="2.0.44" GeneratePathProperty="true" />
<PackageReference Include="Mono.Cecil" Version="0.11.6" />
</ItemGroup>
<!-- ============================================ -->
<!-- ILRepack Target (merge MLVScan.Core) -->
<!-- ============================================ -->
<Target Name="MergeAssemblies" AfterTargets="Build">
<ItemGroup>
<InputAssemblies Include="$(TargetPath)" />
<!-- NuGet: use package path; Local: use output (ProjectReference copies to output) -->
<InputAssemblies Include="$(PkgMLVScan_Core)\lib\netstandard2.1\MLVScan.Core.dll"
Condition="'$(UseLocalMLVScanCore)' != 'true'" />
<InputAssemblies Include="$(OutputPath)MLVScan.Core.dll"
Condition="'$(UseLocalMLVScanCore)' == 'true'" />
<!-- Reference paths for ILRepack to resolve dependencies -->
<ILRepackLib Include="$(PkgLavaGang_MelonLoader)\lib\net35" Condition="'$(Configuration)' == 'MelonLoader' and '$(PkgLavaGang_MelonLoader)' != ''" />
<ILRepackLib Include="$(MelonLoaderPath)" Condition="'$(Configuration)' == 'MelonLoader' and '$(MelonLoaderPath)' != ''" />
<ILRepackLib Include="$(GameManagedPath)" Condition="'$(Configuration)' == 'MelonLoader' and '$(GameManagedPath)' != ''" />
<ILRepackLib Include="$(PkgBepInEx_BaseLib)\lib\netstandard2.0" Condition="'$(PkgBepInEx_BaseLib)' != '' and '$(Configuration)' == 'BepInEx5'" />
<ILRepackLib Include="$(PkgBepInEx_Unity_Mono)\lib\netstandard2.1" Condition="'$(PkgBepInEx_Unity_Mono)' != '' and '$(Configuration)' == 'BepInEx6Mono'" />
<ILRepackLib Include="$(PkgBepInEx_Unity_Mono_Preloader)\lib\netstandard2.1" Condition="'$(PkgBepInEx_Unity_Mono_Preloader)' != '' and '$(Configuration)' == 'BepInEx6Mono'" />
<ILRepackLib Include="$(PkgBepInEx_Core)\lib\netstandard2.0" Condition="'$(PkgBepInEx_Core)' != '' and '$(Configuration)' == 'BepInEx6Mono'" />
<ILRepackLib Include="$(PkgBepInEx_Preloader_Core)\lib\netstandard2.0" Condition="'$(PkgBepInEx_Preloader_Core)' != '' and '$(Configuration)' == 'BepInEx6Mono'" />
<ILRepackLib Include="$(PkgBepInEx_Unity_IL2CPP)\lib\net6.0" Condition="'$(PkgBepInEx_Unity_IL2CPP)' != '' and '$(Configuration)' == 'BepInEx6IL2CPP'" />
<ILRepackLib Include="$(PkgBepInEx_Core)\lib\netstandard2.0" Condition="'$(PkgBepInEx_Core)' != '' and '$(Configuration)' == 'BepInEx6IL2CPP'" />
<ILRepackLib Include="$(PkgBepInEx_Preloader_Core)\lib\netstandard2.0" Condition="'$(PkgBepInEx_Preloader_Core)' != '' and '$(Configuration)' == 'BepInEx6IL2CPP'" />
</ItemGroup>
<PropertyGroup>
<MergedAssemblyPath>$(OutputPath)$(AssemblyName).merged.dll</MergedAssemblyPath>
<ILRepackExePath>$(PkgILRepack)\tools\ILRepack.exe</ILRepackExePath>
<!-- On non-Windows, use mono to run the .exe -->
<ILRepackCommand Condition="'$(OS)' == 'Windows_NT'">"$(ILRepackExePath)"</ILRepackCommand>
<ILRepackCommand Condition="'$(OS)' != 'Windows_NT'">mono "$(ILRepackExePath)"</ILRepackCommand>
<ILRepackLibArgs Condition="'@(ILRepackLib)' != ''">/lib:"@(ILRepackLib, '" /lib:"')"</ILRepackLibArgs>
</PropertyGroup>
<Exec Command="$(ILRepackCommand) /parallel /union $(ILRepackLibArgs) /out:"$(MergedAssemblyPath)" "@(InputAssemblies, '" "')"" />
<Copy SourceFiles="$(MergedAssemblyPath)" DestinationFiles="$(TargetPath)" Condition="Exists('$(MergedAssemblyPath)')" />
</Target>
<!-- ============================================ -->
<!-- Generated Version Source -->
<!-- ============================================ -->
<Target Name="GenerateVersionInfoSource" BeforeTargets="CoreCompile">
<PropertyGroup>
<GeneratedVersionInfoFile>$(IntermediateOutputPath)Generated\MLVScanBuildInfo.g.cs</GeneratedVersionInfoFile>
</PropertyGroup>
<MakeDir Directories="$([System.IO.Path]::GetDirectoryName('$(GeneratedVersionInfoFile)'))" />
<ItemGroup>
<_VersionInfoLines Include="// <auto-generated />" />
<_VersionInfoLines Include="namespace MLVScan" />
<_VersionInfoLines Include="{" />
<_VersionInfoLines Include=" internal static class MLVScanBuildInfo" />
<_VersionInfoLines Include=" {" />
<_VersionInfoLines Include=" public const string PlatformVersion = "$(Version)"%3B" />
<_VersionInfoLines Include=" }" />
<_VersionInfoLines Include="}" />
</ItemGroup>
<WriteLinesToFile File="$(GeneratedVersionInfoFile)"
Lines="@(_VersionInfoLines)"
Overwrite="true"
WriteOnlyWhenDifferent="true" />
</Target>
<!-- ============================================ -->
<!-- Post-Build Copy (MelonLoader) -->
<!-- ============================================ -->
<Target Name="PostBuildMelonLoader" AfterTargets="MergeAssemblies" Condition="'$(Configuration)'=='MelonLoader' and '$(MelonPluginsPath)' != ''">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(MelonPluginsPath)" />
<Message Text="Copied MLVScan.MelonLoader.dll to $(MelonPluginsPath)" Importance="high" />
</Target>
<!-- ============================================ -->
<!-- Post-Build Copy (BepInEx5) -->
<!-- ============================================ -->
<Target Name="PostBuildBepInEx5" AfterTargets="MergeAssemblies" Condition="'$(Configuration)'=='BepInEx5' and '$(BepInExPatchersPath)' != ''">
<MakeDir Directories="$(BepInExPatchersPath)" Condition="!Exists('$(BepInExPatchersPath)')" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(BepInExPatchersPath)" />
<Message Text="Copied MLVScan.BepInEx5.dll to $(BepInExPatchersPath)" Importance="high" />
</Target>
<!-- ============================================ -->
<!-- Post-Build Copy (Release Package Targets) -->
<!-- ============================================ -->
<Target Name="PostBuildReleasePackages" AfterTargets="MergeAssemblies">
<ItemGroup>
<_ReleaseCopyTarget Include="$(MelonLoaderReleaseCopyDirectories)"
Condition="'$(Configuration)'=='MelonLoader' and '$(MelonLoaderReleaseCopyDirectories)' != ''" />
<_ReleaseCopyTarget Include="$(BepInEx5ReleaseCopyDirectories)"
Condition="'$(Configuration)'=='BepInEx5' and '$(BepInEx5ReleaseCopyDirectories)' != ''" />
<_ReleaseCopyTarget Include="$(BepInEx6MonoReleaseCopyDirectories)"
Condition="'$(Configuration)'=='BepInEx6Mono' and '$(BepInEx6MonoReleaseCopyDirectories)' != ''" />
<_ReleaseCopyTarget Include="$(BepInEx6IL2CPPReleaseCopyDirectories)"
Condition="'$(Configuration)'=='BepInEx6IL2CPP' and '$(BepInEx6IL2CPPReleaseCopyDirectories)' != ''" />
</ItemGroup>
<MakeDir Directories="@(_ReleaseCopyTarget)" Condition="'@(_ReleaseCopyTarget)' != ''" />
<Copy SourceFiles="$(TargetPath)"
DestinationFolder="%(_ReleaseCopyTarget.Identity)"
SkipUnchangedFiles="false"
Condition="'@(_ReleaseCopyTarget)' != ''" />
<Message Text="Copied $(TargetFileName) to release package directories: @(_ReleaseCopyTarget, ', ')"
Importance="high"
Condition="'@(_ReleaseCopyTarget)' != ''" />
</Target>
</Project>