35 lines
1.2 KiB
XML
35 lines
1.2 KiB
XML
|
<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>
|