|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<Import Project="..\Common.props" />
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net472</TargetFrameworks>
|
|
<RootNamespace>IPA</RootNamespace>
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
<BuildForBeatSaber Condition=" '$(BuildForBeatSaber)' == '' And '$(TargetFramework)' == 'net472' ">true</BuildForBeatSaber>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net472'">
|
|
<DefineConstants>$(DefineConstants);NET4</DefineConstants>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net35'">
|
|
<DefineConstants>$(DefineConstants);NET3</DefineConstants>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(BuildForBeatSaber)' == 'true'">
|
|
<DefineConstants>$(DefineConstants);BeatSaber</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
|
|
<Reference Include="UnityEngine.CoreModule">
|
|
<HintPath>..\Refs\UnityEngine.CoreModule.Net4.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.UnityWebRequestModule">
|
|
<HintPath>..\Refs\UnityEngine.UnityWebRequestModule.Net4.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
|
|
<Reference Include="UnityEngine.CoreModule">
|
|
<HintPath>..\Refs\UnityEngine.CoreModule.Net3.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.UnityWebRequestModule">
|
|
<HintPath>..\Refs\UnityEngine.UnityWebRequestModule.Net3.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net35' ">
|
|
<ProjectReference Include="..\Net3-Proxy\Net3-Proxy.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="HarmonyX" Version="2.10.2" />
|
|
<PackageReference Include="Hive.Versioning.Standalone" Version="0.1.0-gh846.1" />
|
|
<PackageReference Include="Ionic.Zip" Version="1.9.1.8" />
|
|
<PackageReference Include="Mono.Cecil" Version="0.11.5" />
|
|
<PackageReference Include="System.Text.Json" Version="8.0.1" />
|
|
|
|
<ProjectReference Include="..\SemVer\SemVer.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Loader\manifest.json" />
|
|
<EmbeddedResource Include="icon_white.png" />
|
|
<EmbeddedResource Include="Loader\description.md" />
|
|
</ItemGroup>
|
|
|
|
<!-- disable the updater -->
|
|
<ItemGroup>
|
|
<Compile Remove="Updating\BeatMods\*.cs" />
|
|
<None Include="Updating\BeatMods\*.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'net35'">
|
|
<Compile Remove="AntiMalware\_HideInNet3\**" />
|
|
<None Include="AntiMalware\_HideInNet3\**" />
|
|
</ItemGroup>
|
|
|
|
<Import Project="..\Common.targets" />
|
|
|
|
</Project>
|