-
-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathReloaded.Mod.Loader.csproj
More file actions
107 lines (95 loc) · 5.08 KB
/
Reloaded.Mod.Loader.csproj
File metadata and controls
107 lines (95 loc) · 5.08 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<RollForward>Minor</RollForward>
<LangVersion>preview</LangVersion>
<AssemblyTitle>Reloaded.Mod.Loader</AssemblyTitle>
<UseWindowsForms>true</UseWindowsForms>
<Product>Reloaded.Mod.Loader</Product>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<EnableDynamicLoading>true</EnableDynamicLoading>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);NU1605;NU1701</NoWarn>
<Version>1.30.1</Version>
<CETCompat>false</CETCompat>
<Platforms>x86;x64</Platforms>
<GenerateDepsJson>false</GenerateDepsJson>
<DebugType>portable</DebugType>
<!-- For backcompat with out of support versions of Windows -->
<CETCompat>false</CETCompat>
<!-- IL Trimming Support forked from https://github.com/space-wizards/RobustToolbox, under the MIT License -->
<!-- If you set this to true, trimming will be enabled when you publish the Mod Loader. -->
<RobustILLink>true</RobustILLink>
</PropertyGroup>
<ItemGroup>
<!--
Test with dotnet publish Reloaded.Mod.Loader.csproj -p:PublishTrimmed=true -p:TrimmerDefaultAction=link -c Release -r win-x64 --self-contained
DO NOT TEST WITH ROBUST LINK. WILL NOT SHOW ALL WARNINGS.
-->
<!-- If it produces trim warnings, add it here. -->
<RobustLinkRoots Include="Reloaded.Mod.Loader" />
<RobustLinkRoots Include="Reloaded.Mod.Loader.IO" />
<RobustLinkRoots Include="McMaster.NETCore.Plugins" />
<!-- Add assemblies to be trimmed. You might need to add their dependencies too! -->
<RobustLinkAssemblies Include="Reloaded.Mod.Loader.Server" />
<RobustLinkAssemblies Include="Reloaded.Memory" />
<RobustLinkAssemblies Include="Iced" />
<RobustLinkAssemblies Include="SharpDisasm" />
<RobustLinkAssemblies Include="Reloaded.Messaging" />
<RobustLinkAssemblies Include="Reloaded.Messaging.Interfaces" />
<RobustLinkAssemblies Include="Reloaded.Memory.Buffers" />
<RobustLinkAssemblies Include="Indieteur.SAMAPI" />
<RobustLinkAssemblies Include="Indieteur.VDFAPI" />
<RobustLinkAssemblies Include="LiteNetLib" />
<RobustLinkAssemblies Include="Reloaded.Hooks" />
<RobustLinkAssemblies Include="Reloaded.Hooks.Definitions" />
<RobustLinkAssemblies Include="Colorful.Console" />
<RobustLinkAssemblies Include="Microsoft.DotNet.PlatformAbstractions" />
<RobustLinkAssemblies Include="Microsoft.Extensions.DependencyModel" />
<RobustLinkAssemblies Include="Reloaded.Assembler" />
<RobustLinkAssemblies Include="Reloaded.Mod.Shared" />
<RobustLinkAssemblies Include="Reloaded.Hooks.Definitions" />
<!-- DO NOT ADD Reloaded.Mod.Interfaces or stuff we share with other mods!! -->
</ItemGroup>
<Import Project="..\Reloaded.Mod.Loader.IPC\Reloaded.Mod.Loader.IPC.projitems" Label="Shared" />
<Import Project="..\Reloaded.Mod.Shared\Reloaded.Mod.Shared.projitems" Label="Shared" />
<Import Project="../Robust.Trimming.targets" />
<!-- USE NLS Instead of ICU. Saves around 25MB address space on x86 processes. -->
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Globalization.UseNls" Value="true" />
</ItemGroup>
<!-- Disable HTTP/3, as this has issues with Wine. -->
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Net.SocketsHttpHandler.Http3Support" Value="false" />
</ItemGroup>
<!-- Build dual x86 & x64 -->
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<MSBuild Condition=" '$(Platform)' == 'x64' " Projects="$(MSBuildProjectFile)" Properties="Platform=x86;PlatFormTarget=x86" RunEachTargetSeparately="true" />
</Target>
<PropertyGroup Condition="'$(Platform)'=='x86'">
<OutputPath>..\\Output\\Launcher\\Loader\\x86</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='x64'">
<OutputPath>..\\Output\\Launcher\\Loader\\x64</OutputPath>
</PropertyGroup>
<!-- NuGet Stuff -->
<ItemGroup>
<ProjectReference Include="..\Reloaded.Mod.Interfaces\Reloaded.Mod.Interfaces.csproj" />
<ProjectReference Include="..\Reloaded.Mod.Loader.IO\Reloaded.Mod.Loader.IO.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.39" PrivateAssets="All" />
<PackageReference Include="Colorful.Console" Version="1.2.2-reloaded" />
<PackageReference Include="Indieteur.SteamAppsManAndVDFAPI" Version="1.0.5" />
<PackageReference Include="McMaster.NETCore.Plugins" Version="2.0.0" />
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="10.0.0" />
<PackageReference Include="Reloaded.SharedLib.Hooks" Version="1.9.0" ExcludeAssets="runtime" />
</ItemGroup>
<ItemGroup>
<Content Include="DelayInjectHooks.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>