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.

151 lines
6.7 KiB

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