-
Notifications
You must be signed in to change notification settings - Fork 0
/
MediumClass.csproj
204 lines (182 loc) · 8.44 KB
/
MediumClass.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
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!--
Enables the latest C# language features. Runtime features are limited by the .NET framework version, so some
features (e.g. Default Interfaces) are not available.
-->
<LangVersion>latest</LangVersion>
<!-- Latest .NET version supported by Wrath / Unity -->
<TargetFramework>net472</TargetFramework>
<!-- Needed to use publicized assembly -->
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyName>MediumClass</AssemblyName>
<RootNamespace>MediumClass</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Remove="lib\**" />
<EmbeddedResource Remove="lib\**" />
<None Remove="lib\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="ContextActionFeintSkillCheck.cs" />
<Compile Remove="Feint.cs" />
<Compile Remove="GreaterFeint.cs" />
<Compile Remove="ImprovedFeint.cs" />
</ItemGroup>
<ItemGroup>
<None Remove="Strings\Trickster.json" />
<None Remove="Strings\Archmage.json" />
<None Remove="Strings\Champion.json" />
<None Remove="Strings\Guardian.json" />
<None Remove="Strings\Marshal.json" />
<None Remove="Strings\Medium.json" />
<None Remove="Strings\Feats.json" />
<None Remove="Strings\Settings.json" />
<None Remove="Strings\Hierophant.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Strings\Trickster.json" />
<EmbeddedResource Include="Strings\Archmage.json" />
<EmbeddedResource Include="Strings\Champion.json" />
<EmbeddedResource Include="Strings\Guardian.json" />
<EmbeddedResource Include="Strings\Marshal.json" />
<EmbeddedResource Include="Strings\Medium.json" />
<EmbeddedResource Include="Strings\Hierophant.json" />
<EmbeddedResource Include="Strings\Feats.json" />
<EmbeddedResource Include="Strings\Settings.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AssemblyPublicizer" Version="*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="ILRepack.MSBuild.Task" Version="*" />
<PackageReference Include="WW-Blueprint-Core" Version="2.7.5" />
</ItemGroup>
<ItemGroup>
<!-- Main Wrath Assembly, Publicized -->
<Reference Include="Assembly-CSharp">
<HintPath>$(SolutionDir)lib\Assembly-CSharp.dll</HintPath>
</Reference>
<!-- Wrath Assemblies -->
<Reference Include="Assembly-CSharp-firstpass.dll">
<HintPath>$(WrathPath)\Wrath_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="ModMenu">
<HintPath>D:\Steam\steamapps\common\Pathfinder Second Adventure\Mods\ModMenu\ModMenu.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(WrathPath)\Wrath_Data\Managed\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Owlcat.Runtime.Core">
<HintPath>$(WrathPath)\Wrath_Data\Managed\Owlcat.Runtime.Core.dll</HintPath>
</Reference>
<Reference Include="Owlcat.Runtime.UI">
<HintPath>$(WrathPath)\Wrath_Data\Managed\Owlcat.Runtime.UI.dll</HintPath>
</Reference>
<Reference Include="Owlcat.Runtime.Validation">
<HintPath>$(WrathPath)\Wrath_Data\Managed\Owlcat.Runtime.Validation.dll</HintPath>
</Reference>
<Reference Include="Owlcat.Runtime.Visual">
<HintPath>$(WrathPath)\Wrath_Data\Managed\Owlcat.Runtime.Visual.dll</HintPath>
</Reference>
<Reference Include="TabletopTweaks-Core">
<HintPath>D:\Steam\steamapps\common\Pathfinder Second Adventure\Mods\TabletopTweaks-Core\TabletopTweaks-Core.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(WrathPath)\Wrath_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(WrathPath)\Wrath_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<!-- UMM & Harmony -->
<Reference Include="0Harmony">
<HintPath>$(WrathPath)\Wrath_Data\Managed\UnityModManager\0Harmony.dll</HintPath>
</Reference>
<Reference Include="UnityModManager">
<HintPath>$(WrathPath)\Wrath_Data\Managed\UnityModManager\UnityModManager.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Update="Strings\Medium.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Champion.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Trickster.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Marshal.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Hierophant.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Guardian.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="mediumclass_assets">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Archmage.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Settings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Strings\Feats.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Info.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!-- Generates Assembly-CSharp_public.dll -->
<Target Name="Publicize" AfterTargets="Clean">
<ItemGroup>
<Assemblies Include="$(WrathPath)\Wrath_Data\Managed\Assembly-CSharp.dll" />
<PublicAssembly Include="$(SolutionDir)lib\Assembly-CSharp.dll" />
<RenamedAssembly Include="$(SolutionDir)lib\Assembly-CSharp.dll" />
</ItemGroup>
<PublicizeTask InputAssemblies="@(Assemblies)" OutputDir="$(SolutionDir)lib/" />
<!-- ILRepack requires the assembly name match the reference so remove _public -->
<Move SourceFiles="@(PublicAssembly)" DestinationFiles="@(RenamedAssembly)" />
</Target>
<!-- Merges BlueprintCore.dll into the main DLL -->
<Target Name="ILRepack" AfterTargets="Build">
<ItemGroup>
<InputAssemblies Include="BlueprintCore.dll" />
<InputAssemblies Include="$(AssemblyName).dll" />
<OutputAssembly Include="$(AssemblyName).dll" />
</ItemGroup>
<Message Text="Merging: @(InputAssemblies) into @(OutputAssembly)" Importance="High" />
<ILRepack OutputType="Dll" MainAssembly="@(OutputAssembly)" OutputAssembly="@(OutputAssembly)" InputAssemblies="@(InputAssemblies)" WorkingDirectory="$(OutputPath)" />
</Target>
<!-- Automatically deploys the mod on build <Strings Include="$(OutputPath)\LocalizedStrings.json" />-->
<Target Name="Deploy" AfterTargets="ILRepack">
<ItemGroup>
<Assembly Include="$(OutputPath)\$(AssemblyName).dll" />
<ModConfig Include="$(OutputPath)\Info.json" />
<Assets Include="$(OutputPath)\*_assets" />
</ItemGroup>
<Copy SourceFiles="@(Assembly)" DestinationFolder="$(WrathPath)\Mods\$(MSBuildProjectName)" />
<Copy SourceFiles="@(ModConfig)" DestinationFolder="$(WrathPath)\Mods\$(MSBuildProjectName)" />
<Copy SourceFiles="@(Strings)" DestinationFolder="$(WrathPath)\Mods\$(MSBuildProjectName)" />
<Copy SourceFiles="@(Assets)" DestinationFolder="$(WrathPath)\Mods\$(MSBuildProjectName)" />
</Target>
<!-- Automatically creates a release zip -->
<Target Name="ZipRelease" AfterTargets="ILRepack" Condition="'$(Configuration)' == 'Release'">
<ItemGroup>
<Assembly Include="$(OutputPath)\$(AssemblyName).dll" />
<ModConfig Include="$(OutputPath)\Info.json" />
<!--<Strings Include="$(OutputPath)\LocalizedStrings.json" />-->
<Assets Include="$(OutputPath)\*_assets" />
</ItemGroup>
<Copy SourceFiles="@(Assembly)" DestinationFolder="$(OutputPath)\$(AssemblyName)" />
<Copy SourceFiles="@(ModConfig)" DestinationFolder="$(OutputPath)\$(AssemblyName)" />
<Copy SourceFiles="@(Strings)" DestinationFolder="$(OutputPath)\$(AssemblyName)" />
<Copy SourceFiles="@(Assets)" DestinationFolder="$(OutputPath)\$(AssemblyName)" />
<ZipDirectory SourceDirectory="$(OutputPath)\$(AssemblyName)" DestinationFile="$(OutputPath)\$(AssemblyName).zip" Overwrite="true" />
</Target>
</Project>