-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModManagerSettings.csproj
More file actions
36 lines (33 loc) · 1.54 KB
/
ModManagerSettings.csproj
File metadata and controls
36 lines (33 loc) · 1.54 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<AssemblyName>ModManagerSettings</AssemblyName>
<RootNamespace>ModManagerSettings</RootNamespace>
<Sts2InstallDir Condition="'$(Sts2InstallDir)' == '' and '$(STS2_INSTALL_DIR)' != ''">$(STS2_INSTALL_DIR)</Sts2InstallDir>
</PropertyGroup>
<ItemGroup>
<Reference Include="sts2">
<HintPath>$(Sts2InstallDir)/data_sts2_windows_x86_64/sts2.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="GodotSharp">
<HintPath>$(Sts2InstallDir)/data_sts2_windows_x86_64/GodotSharp.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="0Harmony">
<HintPath>$(Sts2InstallDir)/data_sts2_windows_x86_64/0Harmony.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
<Target Name="ValidateSts2InstallDir" BeforeTargets="ResolveReferences">
<Error Condition="'$(Sts2InstallDir)' == ''" Text="Sts2InstallDir is not set. Define STS2_INSTALL_DIR in .env or pass -p:Sts2InstallDir=/path/to/Slay the Spire 2." />
<Error Condition="!Exists('$(Sts2InstallDir)/data_sts2_windows_x86_64/sts2.dll')" Text="Could not find sts2.dll under '$(Sts2InstallDir)/data_sts2_windows_x86_64'. Check STS2_INSTALL_DIR in .env." />
</Target>
<ItemGroup>
<Compile Remove="decompile/**/*.cs" />
<None Include="decompile/**/*.cs" />
</ItemGroup>
</Project>