-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathWECCL.csproj
More file actions
77 lines (64 loc) · 3.47 KB
/
WECCL.csproj
File metadata and controls
77 lines (64 loc) · 3.47 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyVersion>1.0.0</AssemblyVersion>
<ReleaseVersion>1.0.0</ReleaseVersion>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>full</DebugType>
<OutputPath Condition=" '$(SolutionDir)' != '' ">$(SolutionDir)bin\$(Configuration)\$(MSBuildProjectName)\</OutputPath>
<OutputPath Condition=" '$(SolutionDir)' == '' ">$(ProjectDir)bin\$(Configuration)\$(MSBuildProjectName)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<PackageId>WECCL</PackageId>
<RootNamespace>WECCL</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>portable</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.4.21"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="UnityEngine.Modules" Version="2020.3.43" IncludeAssets="compile" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Folder Include="lib" />
</ItemGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>lib\Assembly-CSharp_public.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>lib\UnityEngine.UI.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
<PropertyGroup>
<!-- Change this to the BepInEx folder of your game if necessary -->
<BepInExPath>C:\Program Files (x86)\Steam\steamapps\common\Wrestling Empire\BepInEx\plugins\IngoH-WECCL</BepInExPath>
</PropertyGroup>
<ItemGroup>
<Content Include="*.md;*.txt;*.json;*.png" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<Target Name="PostBuildRelease" BeforeTargets="PostBuild" Condition="'$(Configuration)' == 'Release'">
<!-- Obfuscate the API -->
<Exec Command=""$(MSBuildProjectDirectory)\obfuscate\weobf.exe" "$(OutputPath)\$(AssemblyName).dll"" ContinueOnError="false" />
<Delete Files="$(OutputPath)\$(AssemblyName).dll" />
<Move SourceFiles="$(MSBuildProjectDirectory)\$(AssemblyName)_obfuscated.dll" DestinationFiles="$(OutputPath)\$(AssemblyName).dll" />
</Target>
<Target Name="PostBuild" AfterTargets="Build">
<Delete Files="$(OutputPath)\$(AssemblyName).deps.json" />
<!-- Comment the lines below if you don't want to automatically copy the plugin to BepInEx -->
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).dll" DestinationFolder="$(BepInExPath)" />
<Move SourceFiles="$(OutputPath)\$(AssemblyName).pdb" DestinationFolder="$(BepInExPath)" />
<MakeDir Directories="$(OutputPath)plugins" />
<Move SourceFiles="$(OutputPath)\$(AssemblyName).dll" DestinationFolder="$(OutputPath)\plugins" />
</Target>
</Project>