forked from OptimShi/CustomClothingBase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomClothingBase.csproj
152 lines (143 loc) · 5.78 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
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
<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>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
</PropertyGroup>
<!--Conditional check of a defined constant 'REALM' that lets you check for $(Realms)-->
<PropertyGroup>
<!--<DefineConstants>$(DefineConstants);REALM</DefineConstants>-->
<Realms>$(DefineConstants.Contains('REALM'))</Realms>
</PropertyGroup>
<!--ACE References-->
<PropertyGroup Condition="!$(Realms)">
<ACEPath>C:\ACE\Server</ACEPath>
</PropertyGroup>
<ItemGroup Condition="!$(Realms)">
<PackageReference Include="ACEmulator.ACE.Shared" Version="1.*" />
</ItemGroup>
<!--Realms References-->
<PropertyGroup Condition="$(Realms)">
<ACEPath>C:\ACE\RealmServer</ACEPath>
</PropertyGroup>
<ItemGroup Condition="$(Realms)">
<PackageReference Include="ACRealms.ACE.Shared" Version="1.*" />
</ItemGroup>
<ItemGroup>
<Compile Remove=".template.config\**" />
<EmbeddedResource Remove=".template.config\**" />
<None Remove=".template.config\**" />
</ItemGroup>
<PropertyGroup>
<PublicizerClearCacheOnClean>true</PublicizerClearCacheOnClean>
</PropertyGroup>
<ItemGroup>
<Publicize Include="ACE.Server" />
<Publicize Include="ACE.DatLoader" />
<Publicize Include="ACE.Database" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ACEmulator.ACE.Shared" Version="1.0.8" />
<PackageReference Include="Krafs.Publicizer" Version="2.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Lib.Harmony" Version="2.3.3" ExcludeAssets="runtime" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>
<ItemGroup>
<Reference Include="ACE.Adapter">
<HintPath>$(ACEPath)\ACE.Adapter.dll</HintPath>
<Private>False</Private>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ExcludeAssets>all</ExcludeAssets>
</Reference>
<Reference Include="ACE.Common">
<HintPath>$(ACEPath)\ACE.Common.dll</HintPath>
<Private>False</Private>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ExcludeAssets>all</ExcludeAssets>
</Reference>
<Reference Include="ACE.Database">
<HintPath>$(ACEPath)\ACE.Database.dll</HintPath>
<Private>False</Private>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ExcludeAssets>all</ExcludeAssets>
</Reference>
<Reference Include="ACE.DatLoader">
<HintPath>$(ACEPath)\ACE.DatLoader.dll</HintPath>
<Private>False</Private>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ExcludeAssets>all</ExcludeAssets>
</Reference>
<Reference Include="ACE.Entity">
<HintPath>$(ACEPath)\ACE.Entity.dll</HintPath>
<Private>False</Private>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ExcludeAssets>all</ExcludeAssets>
</Reference>
<Reference Include="ACE.Server">
<HintPath>$(ACEPath)\ACE.Server.dll</HintPath>
<Private>False</Private>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ExcludeAssets>all</ExcludeAssets>
</Reference>
<Reference Include="Microsoft.EntityFrameworkCore">
<HintPath>$(ACEPath)\Microsoft.EntityFrameworkCore.dll</HintPath>
<Private>False</Private>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<ExcludeAssets>all</ExcludeAssets>
</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>