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.

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