mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 10:09:31 +00:00
78 lines
4.5 KiB
XML
78 lines
4.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<AssemblyTitle>Quantum Space Buddies</AssemblyTitle>
|
|
<Product>Quantum Space Buddies</Product>
|
|
<Description>Multiplayer mod for Outer Wilds</Description>
|
|
<OutputPath Condition="Exists('$(OwmlDir)')">$(OwmlDir)\Mods\QSB</OutputPath>
|
|
<NoWarn>CS1998;CS0649</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="clean before building" BeforeTargets="PreBuildEvent">
|
|
<Exec Command="del /f /q "$(OutputPath)\*.dll"" IgnoreExitCode="true" />
|
|
<Exec Command="del /f /q "$(OutputPath)\*.exe"" IgnoreExitCode="true" />
|
|
<Exec Command="del /f /q "$(OutputPath)\*.pdb"" IgnoreExitCode="true" />
|
|
<Exec Command="del /f /q "$(OutputPath)\AssetBundles\*"" IgnoreExitCode="true" />
|
|
</Target>
|
|
|
|
<PropertyGroup>
|
|
<GameDllsDir Condition="Exists('$(GameDir)')">$(GameDir)\OuterWilds_Data\Managed</GameDllsDir>
|
|
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
|
|
</PropertyGroup>
|
|
<Target Name="remove dumb files" AfterTargets="PostBuildEvent">
|
|
<Exec Command="del /f /q "$(OutputPath)\*.exe.config"" />
|
|
</Target>
|
|
<Target Name="weave qsb" AfterTargets="PostBuildEvent">
|
|
<Exec Command=""..\MirrorWeaver\bin\$(Configuration)\MirrorWeaver" "$(TargetPath)" ..\GameDlls" />
|
|
</Target>
|
|
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)') and Exists('$(GameDllsDir)')">
|
|
<Exec Command="del /f /q "$(UnityDllsDir)\*.dll"" />
|
|
<Exec Command="del /f /q "$(UnityDllsDir)\*.exe"" />
|
|
<Exec Command="del /f /q "$(UnityDllsDir)\*.pdb"" />
|
|
|
|
<Exec Command="copy /y "$(OutputPath)\*.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(OutputPath)\*.exe" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(OutputPath)\*.pdb" "$(UnityDllsDir)"" IgnoreExitCode="true" />
|
|
|
|
<Exec Command="copy /y "$(GameDllsDir)\Assembly-CSharp*.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\Unity.InputSystem.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\UnityEngine.UI.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\EOS-SDK.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\UniSense.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\Autofac.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\Newtonsoft.Json.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\0Harmony.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\MonoMod*.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\Mono.Cecil.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\OWML*.dll" "$(UnityDllsDir)"" />
|
|
<Exec Command="copy /y "$(GameDllsDir)\NAudio-Unity.dll" "$(UnityDllsDir)"" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<None Include="default-config.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Include="manifest.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Include="AssetBundles\*">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Remove="AssetBundles\AssetBundles" />
|
|
<None Remove="AssetBundles\*.manifest" />
|
|
<None Condition="Exists('debugsettings.json')" Include="debugsettings.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="OuterWildsGameLibs" Version="1.1.12.168" IncludeAssets="compile" />
|
|
<Reference Include="..\Mirror\*.dll" />
|
|
<Reference Include="..\UniTask\*.dll" />
|
|
<Reference Include="..\ProxyScripts\*.dll" />
|
|
<ProjectReference Include="..\EpicOnlineTransport\EpicOnlineTransport.csproj" />
|
|
<ProjectReference Include="..\EpicRerouter\EpicRerouter.csproj" />
|
|
<ProjectReference Include="..\MirrorWeaver\MirrorWeaver.csproj" ReferenceOutputAssembly="false" />
|
|
<PackageReference Include="HarmonyX" Version="2.9.0" IncludeAssets="compile" />
|
|
<PackageReference Include="OWML" Version="2.3.2" IncludeAssets="compile" />
|
|
</ItemGroup>
|
|
</Project>
|