101 lines
4.6 KiB
XML
101 lines
4.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net471</TargetFramework>
|
|
<AssemblyName>Tyfon.UIFixes</AssemblyName>
|
|
<Description>SPT UI Fixes</Description>
|
|
<Version>2.5.1</Version>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<LangVersion>latest</LangVersion>
|
|
<Configurations>Debug;Release</Configurations>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<DefaultItemExcludes>$(DefaultItemExcludes);UIFixes.Test\**</DefaultItemExcludes>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<PathToSPT Condition="'$(Configuration)'=='Debug'">..\..\..\..\SPT\3.9.3-debug</PathToSPT>
|
|
<PathToSPT Condition="'$(Configuration)'=='Release'">..\..\..\..\SPT\3.9.3</PathToSPT>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="spt-common">
|
|
<HintPath>$(PathToSPT)\BepInEx\plugins\spt\spt-common.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="spt-reflection">
|
|
<HintPath>$(PathToSPT)\BepInEx\plugins\spt\spt-reflection.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="AnimationSystem.Types">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\AnimationSystem.Types.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Assembly-CSharp">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\Assembly-CSharp.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Comfort">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\Comfort.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Comfort.Unity">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\Comfort.Unity.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="CommonExtensions">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\CommonExtensions.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="ItemComponent.Types">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\ItemComponent.Types.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Newtonsoft.Json">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\Newtonsoft.Json.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Sirenix.Serialization">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\Sirenix.Serialization.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Unity.TextMeshPro">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\Unity.TextMeshPro.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\UnityEngine.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.CoreModule">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.IMGUIModule">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.InputLegacyModule">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.TextRenderingModule">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.UI">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\UnityEngine.UI.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.UIModule">
|
|
<HintPath>$(PathToSPT)\EscapeFromTarkov_Data\Managed\UnityEngine.UIModule.dll</HintPath>
|
|
</Reference>
|
|
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
|
|
<PackageReference Include="BepInEx.Core" Version="5.*" />
|
|
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2"
|
|
PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
|
<Exec
|
|
Command='if $(ConfigurationName) == Debug (
|
|
xcopy /F /Y "$(TargetPath)" "$(ProjectDir)$(PathToSPT)\BepInEx\plugins\"
|
|
xcopy /F /Y "$(ProjectDir)$(OutDir)$(TargetName).pdb" "$(ProjectDir)$(PathToSPT)\BepInEx\plugins\"
|
|
)
|
|
if $(ConfigurationName) == Release (
|
|
mkdir "$(ProjectDir)dist\BepInEx\plugins"
|
|
xcopy /F /Y "$(TargetPath)" "$(ProjectDir)dist\BepInEx\plugins\"
|
|
xcopy /F /Y /S "$(ProjectDir)dist\BepInEx" "$(ProjectDir)$(PathToSPT)\BepInEx"
|
|
xcopy /F /Y /S "$(ProjectDir)dist\user" "$(ProjectDir)$(PathToSPT)\user"
|
|
7z a -tzip dist\$(TargetName.Replace(".", "-"))-$(Version).zip $(ProjectDir)dist\BepInEx $(ProjectDir)dist\user
|
|
)' />
|
|
</Target>
|
|
</Project> |