-
Notifications
You must be signed in to change notification settings - Fork 14
/
AmongUs.props
78 lines (65 loc) · 3.08 KB
/
AmongUs.props
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
<Project>
<PropertyGroup Condition="'$(Configuration)'=='S20201209'">
<Mappings>NuclearPowered/Mappings:0.1.3</Mappings>
<GameVersion>2020.12.9s</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='S20210305'">
<Mappings>NuclearPowered/Mappings:0.2.0</Mappings>
<GameVersion>2021.3.5s</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='S202103313'">
<Mappings>NuclearPowered/Mappings:0.3.0</Mappings>
<GameVersion>2021.3.31.3s</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='S20210412'">
<Mappings>NuclearPowered/Mappings:0.4.0</Mappings>
<GameVersion>2021.4.12s</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='S20210510'">
<GameVersion>2021.5.10s</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='S20210615'">
<GameVersion>2021.6.15s</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='S20210630'">
<GameVersion>2021.6.30s</GameVersion>
</PropertyGroup>
<PropertyGroup Condition="$(Mappings) == ''">
<DefineConstants>$(DefineConstants);UNOBFUSCATED</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.StartsWith('S'))">
<DefineConstants>$(DefineConstants);STEAM</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.StartsWith('I'))">
<DefineConstants>$(DefineConstants);ITCH</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="Exists('$(AmongUsMods)')">
<AmongUs>$(AmongUsMods)\$(GameVersion)</AmongUs>
</PropertyGroup>
<Choose>
<When Condition="!$(DefineConstants.Contains(UNOBFUSCATED))">
<ItemGroup>
<PackageReference Include="Reactor.OxygenFilter.MSBuild" Version="0.3.0" />
</ItemGroup>
</When>
<When Condition="$(DefineConstants.Contains(UNOBFUSCATED))">
<ItemGroup>
<Reference Include="$(AmongUs)\BepInEx\core\*.dll">
<Private>false</Private>
</Reference>
<Reference Include="$(AmongUs)\BepInEx\unhollowed\*.dll">
<Private>false</Private>
</Reference>
<Reference Remove="$(AmongUs)\BepInEx\unhollowed\netstandard.dll;$(AmongUs)\BepInEx\unhollowed\Newtonsoft.Json.dll" />
</ItemGroup>
</When>
</Choose>
<Target Name="Copy" AfterTargets="Reobfuscate" Condition="!$(DefineConstants.Contains(UNOBFUSCATED))">
<Copy SourceFiles="$(OutputPath)reobfuscated/$(AssemblyName)-$(GameVersion).dll" DestinationFolder="$(AmongUs)/BepInEx/plugins/" />
<Copy SourceFiles="$(OutputPath)reobfuscated/$(AssemblyName)-$(GameVersion).dll" DestinationFolder="$(SolutionDir)bin/" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="$(DefineConstants.Contains(UNOBFUSCATED))">
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFiles="$(AmongUs)/BepInEx/plugins/$(AssemblyName)-$(GameVersion).dll" />
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFiles="$(SolutionDir)bin/$(AssemblyName)-$(GameVersion).dll" />
</Target>
</Project>