miuu-mod-loader/ModLoader.csproj

35 lines
1.2 KiB
XML
Raw Permalink Normal View History

2023-10-05 23:03:32 -04:00
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
<Import Project="$(ProjectDir)UserProperties.xml" />
<Target Name="VerifyModReferences" BeforeTargets="Build">
<Error Text="You forgot to edit UserProperties.xml." Condition="$(UserPropertiesNotSetUp) == True" />
</Target>
<Target Name="InstallMod" AfterTargets="Build">
<PropertyGroup>
<ModCompileOutputDir Condition="'$(ModOutputDir)' == ''">$(ProjectDir)out\</ModCompileOutputDir>
<ModCompileOutputDir Condition="'$(ModOutputDir)' != ''">$(ModOutputDir)\</ModCompileOutputDir>
</PropertyGroup>
<MakeDir Directories="$(ModCompileOutputDir)" />
<Copy SourceFiles="$(TargetDir)$(TargetName).dll" DestinationFolder="$(ModCompileOutputDir)\" />
</Target>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>$(GameDir)\Mods\ModLoader\0Harmony.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(GameDir)\Marble It Up_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(GameDir)\Marble It Up_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
</ItemGroup>
</Project>