-
Notifications
You must be signed in to change notification settings - Fork 1
/
CustomClothingBase.csproj
115 lines (107 loc) · 4.75 KB
/
CustomClothingBase.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<NoWarn>0436;1073;8509</NoWarn>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputPath>C:\ACE\Mods\$(AssemblyName)</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Compile Remove=".template.config\**" />
<EmbeddedResource Remove=".template.config\**" />
<None Remove=".template.config\**" />
</ItemGroup>
<PropertyGroup>
<PublicizeAll>true</PublicizeAll>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JsonNet.ContractResolvers" Version="2.0.0" />
<PackageReference Include="Lib.Harmony" Version="2.3.3" />
<PackageReference Include="ACEmulator.ACE.Shared" Version="1.0.6" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<!--<PackageReference Include="System.Text.Json" Version="7.0.0" Aliases="Json" />-->
</ItemGroup>
<ItemGroup>
<Reference Include="ACE.Adapter">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\ACE.Adapter.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ACE.Common">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\ACE.Common.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ACE.Database">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\ACE.Database.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ACE.DatLoader">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\ACE.DatLoader.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ACE.Entity">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\ACE.Entity.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ACE.Server">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\ACE.Server.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.EntityFrameworkCore">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\Microsoft.EntityFrameworkCore.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.EntityFrameworkCore.Abstractions">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\Microsoft.EntityFrameworkCore.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.EntityFrameworkCore.Relational">
<HintPath>D:\Source\ACE\Source\ACE.Server\bin\x64\Debug\net8.0\Microsoft.EntityFrameworkCore.Relational.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Update="Meta.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!--Get rid of assemblies that should be present in ACE-->
<Target Name="CleanupFiles" AfterTargets="PostBuildEvent">
<ItemGroup>
<FilesToDelete Include="$(OutDir)0Harmony.dll" />
<FilesToDelete Include="$(OutDir)Humanizer.dll" />
<FilesToDelete Include="$(OutDir)ACE.*.dll" Exclude="$(OutDir)ACE.Shared.dll" />
<FilesToDelete Include="$(OutDir)Microsoft.*.dll" />
<FilesToDelete Include="$(OutDir)Mono.*.dll" />
<FilesToDelete Include="$(OutDir)MonoMod.*.dll" />
<FilesToDelete Include="$(OutDir)System.*.dll" Exclude="$(OutDir)System.Text.*.dll" />
</ItemGroup>
<Message Text="Deleting Files @(FilesToDelete)" />
<Delete Files="@(FilesToDelete)">
<Output TaskParameter="DeletedFiles" ItemName="FilesDeleted" />
</Delete>
<Message Text="Files deleted: @(FilesDeleted)" />
</Target>
<!--More cleanup in Release mode?-->
<Target Name="CleanupFilesRelease" AfterTargets="CleanupFiles" Condition="$(ConfigurationName) == Release">
<ItemGroup>
<FilesToDelete Include="$(OutDir)*.deps.json" />
<FilesToDelete Include="$(OutDir)*runtimeconfig.json" />
<FilesToDelete Include="$(OutDir)*.pdb" />
<FilesToDelete Include="$(OutDir)runtimes\**\*.*" />
<FoldersToDelete Include="$(OutDir)runtimes" />
</ItemGroup>
<Message Text="Deleting Files @(FilesToDelete)" />
<Delete Files="@(FilesToDelete)">
<Output TaskParameter="DeletedFiles" ItemName="FilesDeleted" />
</Delete>
<Message Text="Files deleted: @(FilesDeleted)" />
<RemoveDir Directories="@(FoldersToDelete)" />
</Target>
<!--Zip if in Release mod-->
<Target Name="ZipOutputPath" AfterTargets="CleanupFiles" Condition="$(ConfigurationName) == Release">
<ZipDirectory SourceDirectory="$(OutputPath)" DestinationFile="$(OutputPath)..\$(ProjectName).zip" Overwrite="true" />
</Target>
</Project>