|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<Import Project="..\Common.props" />
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net461;net35</TargetFrameworks>
|
|
<RootNamespace>IPA</RootNamespace>
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
<BuildForBeatSaber Condition=" '$(BuildForBeatSaber)' == '' And '$(TargetFramework)' == 'net461' ">true</BuildForBeatSaber>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net461'">
|
|
<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)' == 'net461' ">
|
|
<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="Ionic.Zip" Version="1.9.1.8" />
|
|
<PackageReference Include="Lib.Harmony" Version="2.0.2" />
|
|
<PackageReference Include="Mono.Cecil" Version="0.10.4" />
|
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
|
<PackageReference Include="Portable.System.ValueTuple" Version="1.0.1" />
|
|
<PackageReference Include="SemanticVersioning" Version="1.2.2" />
|
|
<PackageReference Include="AsyncBridge" Version="0.3.1" />
|
|
</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>
|