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.

154 lines
7.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  4. <PropertyGroup>
  5. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  6. <Platform Condition=" '$(Platform)' == '' ">Net4</Platform>
  7. <BuildForBeatSaber Condition=" '$(BuildForBeatSaber)' == '' And '$(Platform)' == 'Net4' ">true</BuildForBeatSaber>
  8. <ProjectGuid>{2A1AF16B-27F1-46E0-9A95-181516BC1CB7}</ProjectGuid>
  9. <OutputType>Library</OutputType>
  10. <AppDesignerFolder>Properties</AppDesignerFolder>
  11. <RootNamespace>IPA.Injector</RootNamespace>
  12. <AssemblyName>IPA.Injector</AssemblyName>
  13. <FileAlignment>512</FileAlignment>
  14. <Deterministic>true</Deterministic>
  15. <PathMap>$(SolutionDir)=C:\</PathMap>
  16. <DebugType>portable</DebugType>
  17. <ShowTargetFrameworks>false</ShowTargetFrameworks>
  18. <ShowTargetFrameworks Condition=" '$(BuildingInsideVisualStudio)' != 'true' Or '$(CI)' == 'True' ">true</ShowTargetFrameworks>
  19. <TargetFrameworks Condition=" '$(ShowTargetFrameworks)' == 'true' ">net461;net35</TargetFrameworks>
  20. <LangVersion>8.0</LangVersion>
  21. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  22. </PropertyGroup>
  23. <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
  24. <DebugSymbols>true</DebugSymbols>
  25. <Optimize>false</Optimize>
  26. <OutputPath>bin\$(Platform)\Debug\</OutputPath>
  27. <DefineConstants>DEBUG;TRACE</DefineConstants>
  28. <ErrorReport>prompt</ErrorReport>
  29. <WarningLevel>4</WarningLevel>
  30. </PropertyGroup>
  31. <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  32. <Optimize>true</Optimize>
  33. <OutputPath>bin\$(Platform)\Release\</OutputPath>
  34. <DefineConstants>TRACE</DefineConstants>
  35. <ErrorReport>prompt</ErrorReport>
  36. <WarningLevel>4</WarningLevel>
  37. </PropertyGroup>
  38. <PropertyGroup Condition=" '$(Platform)' == 'Net4' ">
  39. <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
  40. <DefineConstants>$(DefineConstants);NET4</DefineConstants>
  41. </PropertyGroup>
  42. <PropertyGroup Condition=" '$(Platform)' == 'Net3' ">
  43. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  44. <DefineConstants>$(DefineConstants);NET3</DefineConstants>
  45. </PropertyGroup>
  46. <PropertyGroup Condition=" '$(BuildForBeatSaber)' == 'true' ">
  47. <DefineConstants>$(DefineConstants);BeatSaber</DefineConstants>
  48. </PropertyGroup>
  49. <ItemGroup>
  50. <Reference Include="System" />
  51. <Reference Include="System.Core" />
  52. <Reference Include="System.Xml.Linq" />
  53. <Reference Include="System.Data.DataSetExtensions" />
  54. <Reference Include="System.Data" />
  55. <Reference Include="System.Xml" />
  56. <Reference Include="UnityEngine.CoreModule" Condition=" '$(Platform)' == 'Net4' ">
  57. <HintPath>..\Refs\UnityEngine.CoreModule.Net4.dll</HintPath>
  58. <Private>False</Private>
  59. </Reference>
  60. <Reference Include="UnityEngine.CoreModule" Condition=" '$(Platform)' == 'Net3' ">
  61. <HintPath>..\Refs\UnityEngine.CoreModule.Net3.dll</HintPath>
  62. <Private>False</Private>
  63. </Reference>
  64. </ItemGroup>
  65. <ItemGroup>
  66. <Compile Include="AntiPiracy.cs" />
  67. <Compile Include="Backups\BackupManager.cs" />
  68. <Compile Include="Backups\BackupUnit.cs" />
  69. <Compile Include="Bootstrapper.cs" />
  70. <Compile Include="GameVersionEarly.cs" />
  71. <Compile Include="Injector.cs" />
  72. <Compile Include="PermissionFix.cs" />
  73. <Compile Include="Properties\AssemblyInfo.cs" />
  74. <Compile Include="Updates.cs" />
  75. <Compile Include="Virtualizer.cs" />
  76. </ItemGroup>
  77. <ItemGroup>
  78. <ProjectReference Include="..\IPA.Loader\IPA.Loader.csproj">
  79. <Project>{5ad344f0-01a0-4ca8-92e5-9d095737744d}</Project>
  80. <Name>IPA.Loader</Name>
  81. </ProjectReference>
  82. <ProjectReference Include="..\Net3-Proxy\Net3-Proxy.csproj" Condition=" '$(Platform)' == 'Net3' ">
  83. <Project>{642F52DA-90F9-40E3-8784-6964F36752FB}</Project>
  84. <Name>Net3-Proxy</Name>
  85. </ProjectReference>
  86. </ItemGroup>
  87. <ItemGroup Condition=" '$(Platform)' == 'Net4' ">
  88. <Content Include="..\Libs\I18N.Net4.dll">
  89. <Link>Libraries\Mono\I18N.dll</Link>
  90. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  91. </Content>
  92. <Content Include="..\Libs\I18N.West.Net4.dll">
  93. <Link>Libraries\Mono\I18N.West.dll</Link>
  94. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  95. </Content>
  96. <Content Include="..\Libs\Microsoft.CSharp.dll">
  97. <Link>Libraries\Mono\Microsoft.CSharp.dll</Link>
  98. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  99. </Content>
  100. <Content Include="..\Libs\System.Runtime.Serialization.Net4.dll">
  101. <Link>Libraries\Mono\System.Runtime.Serialization.dll</Link>
  102. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  103. </Content>
  104. </ItemGroup>
  105. <ItemGroup Condition=" '$(Platform)' == 'Net3' ">
  106. <Content Include="..\Libs\I18N.Net3.dll">
  107. <Link>Libraries\Mono\I18N.dll</Link>
  108. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  109. </Content>
  110. <Content Include="..\Libs\I18N.West.Net3.dll">
  111. <Link>Libraries\Mono\I18N.West.dll</Link>
  112. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  113. </Content>
  114. <Content Include="..\Libs\System.Runtime.Serialization.Net3.dll">
  115. <Link>Libraries\Mono\System.Runtime.Serialization.dll</Link>
  116. <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  117. </Content>
  118. </ItemGroup>
  119. <ItemGroup>
  120. <PackageReference Include="Mono.Cecil">
  121. <Version>0.10.4</Version>
  122. </PackageReference>
  123. <PackageReference Include="SemanticVersioning">
  124. <Version>1.2.2</Version>
  125. </PackageReference>
  126. <PackageReference Include="AsyncBridge">
  127. <Version>0.3.1</Version>
  128. </PackageReference>
  129. </ItemGroup>
  130. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  131. <Target Name="AfterBuild">
  132. <Message Text="Relocating" Importance="normal" />
  133. <ItemGroup>
  134. <SystemFiles Include="$(OutputPath)IPA.Injector.*" />
  135. <SystemFiles Include="$(OutputPath)IPA.Loader.*" />
  136. <SystemFiles Include="$(OutputPath)AsyncBridge.*" />
  137. <SystemFiles Include="$(OutputPath)System.*" />
  138. <SystemFiles Include="$(OutputPath)Portable.System.*" />
  139. <SystemFiles Include="$(OutputPath)Net3-Proxy.*" />
  140. <SystemFiles Include="$(OutputPath)Libraries\Mono\**\*" />
  141. <OldLibFiles Include="$(OutputPath)Libs\**\*" />
  142. </ItemGroup>
  143. <Move SourceFiles="@(SystemFiles)" DestinationFolder="$(OutputPath)Data\Managed" />
  144. <RemoveDir Directories="$(OutputPath)Libraries\Mono" />
  145. <Delete Files="@(OldLibFiles)" />
  146. <RemoveDir Directories="$(OutputPath)Libs" />
  147. <ItemGroup>
  148. <LibFiles Include="$(OutputPath)**\*" Exclude="$(OutputPath)Data\**\*;$(OutputPath)Libs\**\*" />
  149. </ItemGroup>
  150. <Move SourceFiles="@(LibFiles)" DestinationFolder="$(OutputPath)Libs\" />
  151. <RemoveDir Directories="$(OutputPath)Libraries\Included" />
  152. <RemoveDir Directories="$(OutputPath)Libraries" />
  153. </Target>
  154. </Project>