You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
3.4 KiB

  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <Import Project="..\Common.props" />
  3. <PropertyGroup>
  4. <TargetFrameworks>net472</TargetFrameworks>
  5. <RootNamespace>IPA</RootNamespace>
  6. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  7. <GenerateDocumentationFile>true</GenerateDocumentationFile>
  8. <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
  9. <BuildForBeatSaber Condition=" '$(BuildForBeatSaber)' == '' And '$(TargetFramework)' == 'net472' ">true</BuildForBeatSaber>
  10. </PropertyGroup>
  11. <PropertyGroup Condition="'$(TargetFramework)' == 'net472'">
  12. <DefineConstants>$(DefineConstants);NET4</DefineConstants>
  13. </PropertyGroup>
  14. <PropertyGroup Condition="'$(TargetFramework)' == 'net35'">
  15. <DefineConstants>$(DefineConstants);NET3</DefineConstants>
  16. </PropertyGroup>
  17. <PropertyGroup Condition="'$(BuildForBeatSaber)' == 'true'">
  18. <DefineConstants>$(DefineConstants);BeatSaber</DefineConstants>
  19. </PropertyGroup>
  20. <ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
  21. <Reference Include="UnityEngine.CoreModule">
  22. <HintPath>..\Refs\UnityEngine.CoreModule.Net4.dll</HintPath>
  23. <Private>False</Private>
  24. </Reference>
  25. <Reference Include="UnityEngine.UnityWebRequestModule">
  26. <HintPath>..\Refs\UnityEngine.UnityWebRequestModule.Net4.dll</HintPath>
  27. <Private>False</Private>
  28. </Reference>
  29. </ItemGroup>
  30. <ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
  31. <Reference Include="UnityEngine.CoreModule">
  32. <HintPath>..\Refs\UnityEngine.CoreModule.Net3.dll</HintPath>
  33. <Private>False</Private>
  34. </Reference>
  35. <Reference Include="UnityEngine.UnityWebRequestModule">
  36. <HintPath>..\Refs\UnityEngine.UnityWebRequestModule.Net3.dll</HintPath>
  37. <Private>False</Private>
  38. </Reference>
  39. </ItemGroup>
  40. <ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
  41. <ProjectReference Include="..\Net3-Proxy\Net3-Proxy.csproj" />
  42. </ItemGroup>
  43. <ItemGroup>
  44. <PackageReference Include="Ionic.Zip" Version="1.9.1.8" />
  45. <!--<PackageReference Include="Lib.Harmony" Version="2.0.2" />-->
  46. <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
  47. <!--<PackageReference Include="AsyncBridge" Version="0.3.1" />
  48. <PackageReference Include="System.ValueTuple" Version="4.5.0">
  49. <ExcludeAssets>buildtransitive</ExcludeAssets>
  50. </PackageReference>-->
  51. <PackageReference Include="Mono.Cecil" Version="0.11.3" />
  52. <PackageReference Include="HarmonyX" Version="2.4.2" />
  53. <PackageReference Include="MonoMod.RuntimeDetour" Version="21.4.29.1" />
  54. <ProjectReference Include="..\SemVer\SemVer.csproj" />
  55. <Reference Include="Hive.Versioning" Version="0.1.0">
  56. <HintPath>$(MSBuildThisFileDirectory)..\Libs\thirdparty\Hive.Versioning.dll</HintPath>
  57. </Reference>
  58. </ItemGroup>
  59. <ItemGroup>
  60. <EmbeddedResource Include="Loader\manifest.json" />
  61. <EmbeddedResource Include="icon_white.png" />
  62. <EmbeddedResource Include="Loader\description.md" />
  63. </ItemGroup>
  64. <!-- disable the updater -->
  65. <ItemGroup>
  66. <Compile Remove="Updating\BeatMods\*.cs" />
  67. <None Include="Updating\BeatMods\*.cs" />
  68. </ItemGroup>
  69. <ItemGroup Condition="'$(TargetFramework)' == 'net35'">
  70. <Compile Remove="AntiMalware\_HideInNet3\**" />
  71. <None Include="AntiMalware\_HideInNet3\**" />
  72. </ItemGroup>
  73. <Import Project="..\Common.targets" />
  74. </Project>