2025-04-18 02:55:24 +00:00
<Project Sdk= "Microsoft.NET.Sdk" >
<PropertyGroup >
2025-04-18 22:00:29 +00:00
<AssemblyName > ExtraSaves</AssemblyName>
<Description > Adds extra save slots to the main menu.</Description>
2025-04-18 02:55:24 +00:00
<TargetFramework > netstandard2.1</TargetFramework>
<Version > 1.0.0</Version>
<LangVersion > latest</LangVersion>
<Nullable > enable</Nullable>
<PublishRelease > true</PublishRelease>
<NoWarn > MSB3277</NoWarn>
<!-- todo macOS -->
<NineSolsPath Condition= "'$(OS)' == 'Windows_NT'" > E:\SteamLibrary\steamapps\common\Nine Sols</NineSolsPath>
<NineSolsPath Condition= "'$(OS)' != 'Windows_NT'" > $(HOME)/.local/share/Steam/steamapps/common/Nine Sols</NineSolsPath>
<DllPath > $(NineSolsPath)/NineSols_Data/Managed</DllPath>
<!-- If you're not using R2Modman/Thunderstore, this can be NineSolsPath as well. Only used in CopyDir -->
<ProfileDir Condition= "'$(OS)' == 'Windows_NT'" > E:\SteamLibrary\steamapps\common\Nine Sols</ProfileDir>
<ProfileDir Condition= "'$(OS)' != 'Windows_NT'" > $(HOME)/.config/r2modmanPlus-local/NineSols/profiles/Default</ProfileDir>
<!-- After building, copy the dll to this folder. Useful for hot - reloading: https://github.com/BepInEx/BepInEx.Debug/blob/master/README.md#scriptengine -->
<CopyDir > $(ProfileDir)/BepInEx/scripts</CopyDir>
</PropertyGroup>
<ItemGroup >
<Reference Include= "Assembly-CSharp" >
<HintPath > $(DllPath)/Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include= "rcg.rcgmakercore.Runtime" >
<HintPath > $(DllPath)/rcg.rcgmakercore.Runtime.dll</HintPath>
</Reference>
<Reference Include= "RCG_General" >
<HintPath > $(DllPath)/RCG_General.dll</HintPath>
</Reference>
<Reference Include= "InControl" >
<HintPath > $(DllPath)/InControl.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup >
<PackageReference Include= "BepInEx.Analyzers" Version= "1.*" PrivateAssets= "all" />
<PackageReference Include= "BepInEx.Core" Version= "5.*" />
<PackageReference Include= "BepInEx.PluginInfoProps" Version= "2.*" />
<PackageReference Include= "UnityEngine.Modules" Version= "2022.3.18" IncludeAssets= "compile" />
<!-- enable below if you want to use the API -->
<PackageReference Include= "NineSolsAPI" Version= "1.2.1" />
<!-- or locally <ProjectReference Include="../../NineSolsAPI/NineSolsAPI/NineSolsAPI.csproj" /> -->
</ItemGroup>
<Target Name= "CheckReferences" BeforeTargets= "BeforeBuild" >
<ItemGroup >
<MissingReferences Include= "@(Reference)" Condition= "!Exists('%(Reference.HintPath)')" />
</ItemGroup>
<Error Condition= "@(MissingReferences->Count()) > 0" Text= "Missing r e f e r e n c e ( s ) ;
@(MissingReferences->'%(HintPath)', ',
 ')
Did you forget to adjust your NineSolsPath '$(NineSolsPath)'?" />
</Target>
<Target Name= "CopyMod" AfterTargets= "PostBuildEvent" Condition= "'$(CopyDir)' != ''" >
<Message Importance= "high" Text= "copying $(TargetPath) to $(CopyDir) ..." />
<Copy SourceFiles= "$(TargetPath)" DestinationFolder= "$(CopyDir)" SkipUnchangedFiles= "true" />
<Copy SourceFiles= "$(TargetDir)$(TargetName).pdb" DestinationFolder= "$(CopyDir)" SkipUnchangedFiles= "true" />
</Target>
<Target Name= "PackageMod" AfterTargets= "Publish" >
<Copy SourceFiles= "$(TargetPath)" DestinationFolder= "../thunderstore/build/dll" SkipUnchangedFiles= "true" />
<Exec Command= "tcli build --config-path ../thunderstore/thunderstore.toml" />
</Target>
</Project>