BepInEx.Patcher.csproj 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="..\packages\ILRepack.2.0.16\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.16\build\ILRepack.props')" />
  4. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  5. <PropertyGroup>
  6. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  7. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  8. <ProjectGuid>{DC89F18B-235B-4C01-AB31-AF40DCE5C4C7}</ProjectGuid>
  9. <OutputType>Exe</OutputType>
  10. <RootNamespace>BepInEx.Patcher</RootNamespace>
  11. <AssemblyName>BepInEx.Patcher</AssemblyName>
  12. <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  15. <TargetFrameworkProfile />
  16. <NuGetPackageImportStamp>
  17. </NuGetPackageImportStamp>
  18. </PropertyGroup>
  19. <PropertyGroup>
  20. <StartupObject>BepInEx.Patcher.Program</StartupObject>
  21. </PropertyGroup>
  22. <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Legacy|AnyCPU'">
  23. <DebugSymbols>true</DebugSymbols>
  24. <OutputPath>..\bin\patcher\</OutputPath>
  25. <DefineConstants>TRACE</DefineConstants>
  26. <Optimize>true</Optimize>
  27. <DebugType>embedded</DebugType>
  28. <PlatformTarget>AnyCPU</PlatformTarget>
  29. <ErrorReport>prompt</ErrorReport>
  30. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  31. </PropertyGroup>
  32. <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'v2018|AnyCPU'">
  33. <DebugSymbols>true</DebugSymbols>
  34. <OutputPath>..\bin\patcher\</OutputPath>
  35. <DefineConstants>TRACE;UNITY_2018</DefineConstants>
  36. <Optimize>true</Optimize>
  37. <DebugType>embedded</DebugType>
  38. <PlatformTarget>AnyCPU</PlatformTarget>
  39. <ErrorReport>prompt</ErrorReport>
  40. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  41. </PropertyGroup>
  42. <ItemGroup>
  43. <Reference Include="Mono.Cecil, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
  44. <HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.dll</HintPath>
  45. </Reference>
  46. <Reference Include="Mono.Cecil.Mdb, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
  47. <HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.Mdb.dll</HintPath>
  48. </Reference>
  49. <Reference Include="Mono.Cecil.Pdb, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
  50. <HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.Pdb.dll</HintPath>
  51. </Reference>
  52. <Reference Include="Mono.Cecil.Rocks, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
  53. <HintPath>..\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.Rocks.dll</HintPath>
  54. </Reference>
  55. <Reference Include="System" />
  56. <Reference Include="System.Core" />
  57. </ItemGroup>
  58. <ItemGroup>
  59. <Compile Include="EmbeddedResource.cs" />
  60. <Compile Include="Program.cs" />
  61. <Compile Include="Properties\AssemblyInfo.cs" />
  62. </ItemGroup>
  63. <ItemGroup>
  64. <None Include="packages.config" />
  65. </ItemGroup>
  66. <ItemGroup />
  67. <ItemGroup>
  68. <EmbeddedResource Include="..\bin\patcher\BepInEx.Bootstrap.dll" />
  69. </ItemGroup>
  70. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  71. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  72. <PropertyGroup>
  73. <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
  74. </PropertyGroup>
  75. <Error Condition="!Exists('..\packages\ILRepack.2.0.16\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.2.0.16\build\ILRepack.props'))" />
  76. <Error Condition="!Exists('..\packages\ILRepack.Lib.MSBuild.Task.2.0.16.1\build\ILRepack.Lib.MSBuild.Task.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.Lib.MSBuild.Task.2.0.16.1\build\ILRepack.Lib.MSBuild.Task.targets'))" />
  77. </Target>
  78. <Import Project="..\packages\ILRepack.Lib.MSBuild.Task.2.0.16.1\build\ILRepack.Lib.MSBuild.Task.targets" Condition="Exists('..\packages\ILRepack.Lib.MSBuild.Task.2.0.16.1\build\ILRepack.Lib.MSBuild.Task.targets')" />
  79. <!-- ILRepack -->
  80. <Target Name="AfterBuild">
  81. <Move SourceFiles="$(OutputPath)\$(AssemblyName).exe" DestinationFiles="$(OutputPath)\$(AssemblyName)1.exe" />
  82. <ItemGroup>
  83. <InputAssemblies Include="$(OutputPath)\$(AssemblyName)1.exe" />
  84. <InputAssemblies Include="$(OutputPath)\Mono.Cecil.dll" />
  85. </ItemGroup>
  86. <ILRepack Parallel="true" Internalize="true" DebugInfo="true" InputAssemblies="@(InputAssemblies)" TargetKind="Exe" TargetPlatformVersion="v2" OutputFile="$(OutputPath)\$(AssemblyName).exe" />
  87. <Delete Files="@(InputAssemblies)" />
  88. <Delete Files="$(OutputPath)\BepInEx.Bootstrap.dll" />
  89. </Target>
  90. <!-- /ILRepack -->
  91. </Project>