-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathSurfTimer.Plugin.csproj
More file actions
45 lines (40 loc) · 1.71 KB
/
SurfTimer.Plugin.csproj
File metadata and controls
45 lines (40 loc) · 1.71 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!-- Copy all NuGet runtime dependencies to $(OutDir) on Build -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>DEBUG</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.356" />
<PackageReference Include="MaxMind.GeoIP2" Version="5.4.1" />
<PackageReference Include="MySqlConnector" Version="2.5.0" />
<PackageReference Include="Serilog" Version="4.3.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="10.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
<!-- Add Dapper, to ensure Dapper.dll is included in the output -->
<PackageReference Include="Dapper" Version="2.1.66" />
<ProjectReference Include="..\..\SurfTimer.Shared\SurfTimer.Shared.csproj" />
</ItemGroup>
<!-- After Build, keep only the necessary files -->
<Target Name="KeepOnlySelectedDlls" AfterTargets="Build">
<ItemGroup>
<Keep Include="$(OutDir)SurfTimer.Plugin.dll;
$(OutDir)SurfTimer.Plugin.pdb;
$(OutDir)SurfTimer.Shared.dll;
$(OutDir)Dapper.dll;
$(OutDir)MaxMind.Db.dll;
$(OutDir)MaxMind.GeoIP2.dll;
$(OutDir)MySqlConnector.dll" />
<AllDlls Include="$(OutDir)*.dll" />
<ToDelete Include="@(AllDlls)" Exclude="@(Keep)" />
</ItemGroup>
<Delete Files="@(ToDelete)" />
</Target>
</Project>