BepInEx.Patcher.csproj 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.15\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.15\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 Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  20. <PlatformTarget>AnyCPU</PlatformTarget>
  21. <DebugSymbols>false</DebugSymbols>
  22. <DebugType>none</DebugType>
  23. <Optimize>false</Optimize>
  24. <OutputPath>..\bin\</OutputPath>
  25. <DefineConstants>DEBUG;TRACE</DefineConstants>
  26. <ErrorReport>prompt</ErrorReport>
  27. <WarningLevel>4</WarningLevel>
  28. <Prefer32Bit>false</Prefer32Bit>
  29. <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
  30. </PropertyGroup>
  31. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  32. <PlatformTarget>AnyCPU</PlatformTarget>
  33. <DebugType>pdbonly</DebugType>
  34. <Optimize>true</Optimize>
  35. <OutputPath>..\bin\</OutputPath>
  36. <DefineConstants>TRACE</DefineConstants>
  37. <ErrorReport>prompt</ErrorReport>
  38. <WarningLevel>4</WarningLevel>
  39. <Prefer32Bit>false</Prefer32Bit>
  40. </PropertyGroup>
  41. <PropertyGroup>
  42. <StartupObject>BepInEx.Patcher.Program</StartupObject>
  43. </PropertyGroup>
  44. <ItemGroup>
  45. <Reference Include="Mono.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
  46. <HintPath>..\packages\Mono.Cecil.0.10.0\lib\net35\Mono.Cecil.dll</HintPath>
  47. <Private>True</Private>
  48. </Reference>
  49. <Reference Include="System" />
  50. <Reference Include="System.Core" />
  51. <Reference Include="System.Xml.Linq" />
  52. <Reference Include="System.Data.DataSetExtensions" />
  53. <Reference Include="System.Data" />
  54. <Reference Include="System.Xml" />
  55. </ItemGroup>
  56. <ItemGroup>
  57. <Compile Include="EmbeddedResource.cs" />
  58. <Compile Include="Program.cs" />
  59. <Compile Include="Properties\AssemblyInfo.cs" />
  60. </ItemGroup>
  61. <ItemGroup>
  62. <None Include="packages.config" />
  63. </ItemGroup>
  64. <ItemGroup />
  65. <ItemGroup>
  66. <EmbeddedResource Include="..\bin\0Harmony.dll" />
  67. <EmbeddedResource Include="..\bin\BepInEx.dll" />
  68. </ItemGroup>
  69. <Import Project="..\BepInEx.Common\BepInEx.Common.projitems" Label="Shared" />
  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.15\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.2.0.15\build\ILRepack.props'))" />
  76. <Error Condition="!Exists('..\packages\ILRepack.MSBuild.Task.1.0.9\build\ILRepack.MSBuild.Task.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.MSBuild.Task.1.0.9\build\ILRepack.MSBuild.Task.targets'))" />
  77. </Target>
  78. <!-- ILRepack -->
  79. <Target Name="AfterBuild">
  80. <Move SourceFiles="$(OutputPath)\$(AssemblyName).exe" DestinationFiles="$(OutputPath)\$(AssemblyName)1.exe" />
  81. <ItemGroup>
  82. <InputAssemblies Include="$(OutputPath)\$(AssemblyName)1.exe" />
  83. <InputAssemblies Include="$(OutputPath)\Mono.Cecil.dll" />
  84. </ItemGroup>
  85. <ILRepack Parallel="true" Internalize="true" DebugInfo="true" PrimaryAssemblyFile="$(OutputPath)\$(AssemblyName)1.exe" InputAssemblies="@(InputAssemblies)" TargetKind="Exe" TargetPlatformVersion="v2" OutputFile="$(OutputPath)\$(AssemblyName).exe" />
  86. <Delete Files="@(InputAssemblies)" />
  87. <Delete Files="$(OutputPath)\0Harmony.dll" />
  88. <Delete Files="$(OutputPath)\BepInEx.dll" />
  89. </Target>
  90. <!-- /ILRepack -->
  91. <Import Project="..\packages\ILRepack.MSBuild.Task.1.0.9\build\ILRepack.MSBuild.Task.targets" Condition="Exists('..\packages\ILRepack.MSBuild.Task.1.0.9\build\ILRepack.MSBuild.Task.targets')" />
  92. </Project>