-
-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
130 lines (108 loc) · 5.37 KB
/
Directory.Build.props
File metadata and controls
130 lines (108 loc) · 5.37 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
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
<Project>
<!--
Project
-->
<PropertyGroup>
<Version>0.7.3</Version>
<AppHostVersion>10.0.8</AppHostVersion>
<BootstrapTarget>net9</BootstrapTarget>
<DotNetTarget>net6</DotNetTarget>
<MonoTarget>net35</MonoTarget>
<MonoBleedingEdgeTarget>net472</MonoBleedingEdgeTarget>
<PortablePdbToMdbTarget>netstandard2.0</PortablePdbToMdbTarget>
<Authors>Lava Gang</Authors>
<Company>discord.gg/2Wn3N2P</Company>
<Copyright>Copyright (c) 2020 - 2025 Lava Gang</Copyright>
<Description>The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono.</Description>
<RepositoryUrl>https://github.com/LavaGang/MelonLoader</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<LangVersion>Latest</LangVersion>
<IsPackable>false</IsPackable>
<Configurations>Debug;Release</Configurations>
<Platforms>x86;x64</Platforms>
<RuntimeIdentifiers>win-x86;win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
<CETCompat>false</CETCompat>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>LNK4099</NoWarn>
<InvariantGlobalization>true</InvariantGlobalization>
<RestoreAdditionalProjectSources>https://nuget.bepinex.dev/v3/index.json</RestoreAdditionalProjectSources>
</PropertyGroup>
<!--
Dependencies
-->
<PropertyGroup>
<IcedVersion>1.21.0</IcedVersion>
<TomletVersion>6.2.0</TomletVersion>
<PastelVersion>7.0.1</PastelVersion>
<MonoModVersion>22.7.31.1</MonoModVersion>
<MonoCecilVersion>0.11.6</MonoCecilVersion>
<HarmonyXVersion>2.10.2</HarmonyXVersion>
<AssetToolsVersion>3.0.4</AssetToolsVersion>
<AssetRipperVersion>3.2.0</AssetRipperVersion>
<AsmResolverVersion>6.0.0-beta.5</AsmResolverVersion>
<Il2CppInteropVersion>1.5.1-ci.845</Il2CppInteropVersion>
</PropertyGroup>
<!--
Mono Overrides
-->
<PropertyGroup Condition="'$(TargetFramework)' == '$(MonoTarget)'">
<MonoCecilVersion>0.10.4</MonoCecilVersion>
</PropertyGroup>
<!--
Platform Defaults
-->
<PropertyGroup Condition="'$(ForceRID)' != ''">
<RuntimeIdentifier>$(ForceRID)</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' == '' And '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">
<RuntimeIdentifier>win-$(Platform)</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' == '' And '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">
<!-- <RuntimeIdentifier>linux-$(Platform)</RuntimeIdentifier> -->
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' == '' And '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">
<!-- <RuntimeIdentifier>osx-$(Platform)</RuntimeIdentifier> -->
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
</PropertyGroup>
<!--
Platform Constants
-->
<PropertyGroup Condition="'$(RuntimeIdentifier.StartsWith(`linux-`))' == 'true'">
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
<LibPrefix>lib</LibPrefix>
<LibExt>.a</LibExt>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier.StartsWith(`osx-`))' == 'true'">
<!-- TODO: split x64 and arm64 -->
<DefineConstants>$(DefineConstants);OSX</DefineConstants>
<LibPrefix>lib</LibPrefix>
<LibExt>.a</LibExt>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier.StartsWith(`win-`))' == 'true'">
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<LibExt>.lib</LibExt>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier.EndsWith(`-x64`))' == 'true'">
<DefineConstants>$(DefineConstants);X64</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<MLOutDir>$(SolutionDir)Output/$(Configuration)/$(RuntimeIdentifier)</MLOutDir>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(MonoTarget)' Or '$(TargetFramework)' == '$(MonoBleedingEdgeTarget)'">
<ProjectReference Include="$(SolutionDir)/PortablePdbToMdb/PortablePdbToMdb.csproj"
ReferenceOutputAssembly="false"
SkipGetTargetFrameworkProperties="true"
GlobalPropertiesToRemove="TargetFramework" />
</ItemGroup>
<UsingTask TaskName="PortablePdbToMdb"
Condition="'$(TargetFramework)' == '$(MonoTarget)' Or '$(TargetFramework)' == '$(MonoBleedingEdgeTarget)'"
AssemblyFile="$(SolutionDir)/PortablePdbToMdb/bin/PortablePdbToMdb.dll"
TaskFactory="TaskHostFactory" />
<Target Name="SymbolsConvert" Condition="'$(TargetFramework)' == 'net35'" AfterTargets="AfterBuild">
<PortablePdbToMdb AssemblyPath="$(TargetPath)" />
</Target>
</Project>