Files
2026-10-29 05:29:58 -07:00

65 lines
3.4 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>SkinRecolor</AssemblyName>
<RootNamespace>SkinRecolor</RootNamespace>
<Version>2.1.0</Version>
<Authors>RedLintu16</Authors>
<Description>Recolor any Mycopunk skin. Modded players see your exact colors via Steam lobby data; players without the mod see your hue on skins with a Hue modifier.</Description>
<LangVersion>latest</LangVersion>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<GenerateDependencyFile>false</GenerateDependencyFile>
<!-- BepInEx 5 is built against old Mono profiles; these version-unification notes are harmless. -->
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB3277;MSB3243</MSBuildWarningsAsMessages>
<RestoreAdditionalProjectSources>
https://api.nuget.org/v3/index.json;
https://nuget.bepinex.dev/v3/index.json
</RestoreAdditionalProjectSources>
</PropertyGroup>
<!--
Where the game's DLLs come from:
* Default: your Mycopunk install. Override with -p:MycopunkDir="D:\SteamLibrary\steamapps\common\Mycopunk".
* -p:UseGameLibs=true (or automatically when the install isn't found): the Mycopunk.GameLibs.Steam
NuGet package (stripped game DLLs), so you can build on macOS/Linux without the game.
Auto-copy the built DLL into a BepInEx plugins folder with -p:PluginsDir="...".
-->
<PropertyGroup>
<MycopunkDir Condition="'$(MycopunkDir)' == '' And '$(OS)' == 'Windows_NT'">C:\Program Files (x86)\Steam\steamapps\common\Mycopunk</MycopunkDir>
<MycopunkDir Condition="'$(MycopunkDir)' == '' And '$(OS)' != 'Windows_NT'">$(HOME)/.local/share/Steam/steamapps/common/Mycopunk</MycopunkDir>
<MycopunkManaged>$(MycopunkDir)/Mycopunk_Data/Managed</MycopunkManaged>
<UseGameLibs Condition="'$(UseGameLibs)' == '' And !Exists('$(MycopunkManaged)/Assembly-CSharp.dll')">true</UseGameLibs>
<UseGameLibs Condition="'$(UseGameLibs)' == ''">false</UseGameLibs>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Core" Version="5.*" PrivateAssets="all" />
</ItemGroup>
<ItemGroup Condition="'$(UseGameLibs)' == 'true'">
<PackageReference Include="Mycopunk.GameLibs.Steam" Version="*" PrivateAssets="all" />
</ItemGroup>
<ItemGroup Condition="'$(UseGameLibs)' != 'true'">
<Reference Include="$(MycopunkManaged)/*.dll"
Exclude="$(MycopunkManaged)/System*.dll;$(MycopunkManaged)/mscorlib.dll;$(MycopunkManaged)/netstandard.dll;$(MycopunkManaged)/Mono*.dll;$(MycopunkManaged)/Microsoft*.dll">
<HintPath>%(FullPath)</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
<Target Name="SkinRecolorReportRefs" BeforeTargets="ResolveAssemblyReferences">
<Message Importance="high" Condition="'$(UseGameLibs)' == 'true'" Text="SkinRecolor: building against the Mycopunk.GameLibs.Steam NuGet package" />
<Message Importance="high" Condition="'$(UseGameLibs)' != 'true'" Text="SkinRecolor: building against $(MycopunkManaged)" />
</Target>
<Target Name="SkinRecolorCopyToPlugins" AfterTargets="Build" Condition="'$(PluginsDir)' != ''">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PluginsDir)" />
<Message Importance="high" Text="SkinRecolor: copied $(TargetFileName) to $(PluginsDir)" />
</Target>
</Project>