|
@@ -1,5 +1,6 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
+ <Import Project="..\packages\ILRepack.2.0.15\build\ILRepack.props" Condition="Exists('..\packages\ILRepack.2.0.15\build\ILRepack.props')" />
|
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
|
<PropertyGroup>
|
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
@@ -8,7 +9,7 @@
|
|
|
<OutputType>Exe</OutputType>
|
|
|
<RootNamespace>BepInEx.Patcher</RootNamespace>
|
|
|
<AssemblyName>BepInEx.Patcher</AssemblyName>
|
|
|
- <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
|
|
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
|
|
<FileAlignment>512</FileAlignment>
|
|
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
|
<TargetFrameworkProfile />
|
|
@@ -17,14 +18,15 @@
|
|
|
</PropertyGroup>
|
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
|
- <DebugSymbols>true</DebugSymbols>
|
|
|
- <DebugType>full</DebugType>
|
|
|
+ <DebugSymbols>false</DebugSymbols>
|
|
|
+ <DebugType>none</DebugType>
|
|
|
<Optimize>false</Optimize>
|
|
|
<OutputPath>..\bin\</OutputPath>
|
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
|
<ErrorReport>prompt</ErrorReport>
|
|
|
<WarningLevel>4</WarningLevel>
|
|
|
<Prefer32Bit>false</Prefer32Bit>
|
|
|
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
|
|
</PropertyGroup>
|
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
@@ -37,11 +39,9 @@
|
|
|
<Prefer32Bit>false</Prefer32Bit>
|
|
|
</PropertyGroup>
|
|
|
<ItemGroup>
|
|
|
- <Reference Include="Costura, Version=2.0.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
|
|
|
- <HintPath>..\packages\Costura.Fody.2.0.0\lib\net452\Costura.dll</HintPath>
|
|
|
- </Reference>
|
|
|
<Reference Include="Mono.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
|
|
|
- <HintPath>..\packages\Mono.Cecil.0.10.0\lib\net40\Mono.Cecil.dll</HintPath>
|
|
|
+ <HintPath>..\packages\Mono.Cecil.0.10.0\lib\net35\Mono.Cecil.dll</HintPath>
|
|
|
+ <Private>True</Private>
|
|
|
</Reference>
|
|
|
<Reference Include="System" />
|
|
|
<Reference Include="System.Core" />
|
|
@@ -53,14 +53,26 @@
|
|
|
<ItemGroup>
|
|
|
<Compile Include="Program.cs" />
|
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
|
+ <Compile Include="Resources.Designer.cs">
|
|
|
+ <AutoGen>True</AutoGen>
|
|
|
+ <DesignTime>True</DesignTime>
|
|
|
+ <DependentUpon>Resources.resx</DependentUpon>
|
|
|
+ </Compile>
|
|
|
</ItemGroup>
|
|
|
<ItemGroup>
|
|
|
<None Include="packages.config" />
|
|
|
</ItemGroup>
|
|
|
<ItemGroup>
|
|
|
- <Content Include="FodyWeavers.xml">
|
|
|
- <SubType>Designer</SubType>
|
|
|
- </Content>
|
|
|
+ <EmbeddedResource Include="Resources.resx">
|
|
|
+ <Generator>ResXFileCodeGenerator</Generator>
|
|
|
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
|
|
+ </EmbeddedResource>
|
|
|
+ </ItemGroup>
|
|
|
+ <ItemGroup>
|
|
|
+ <None Include="Resources\0Harmony.dll" />
|
|
|
+ </ItemGroup>
|
|
|
+ <ItemGroup>
|
|
|
+ <None Include="Resources\BepInEx.dll" />
|
|
|
</ItemGroup>
|
|
|
<Import Project="..\BepInEx.Common\BepInEx.Common.projitems" Label="Shared" />
|
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
@@ -68,9 +80,21 @@
|
|
|
<PropertyGroup>
|
|
|
<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>
|
|
|
</PropertyGroup>
|
|
|
- <Error Condition="!Exists('..\packages\Costura.Fody.2.0.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.2.0.0\build\Costura.Fody.targets'))" />
|
|
|
- <Error Condition="!Exists('..\packages\Fody.3.0.3\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.3.0.3\build\Fody.targets'))" />
|
|
|
+ <Error Condition="!Exists('..\packages\ILRepack.2.0.15\build\ILRepack.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\ILRepack.2.0.15\build\ILRepack.props'))" />
|
|
|
+ <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'))" />
|
|
|
+ </Target>
|
|
|
+ <!-- ILRepack -->
|
|
|
+ <Target Name="AfterBuild">
|
|
|
+ <Move SourceFiles="$(OutputPath)\$(AssemblyName).exe" DestinationFiles="$(OutputPath)\$(AssemblyName)1.exe" />
|
|
|
+ <ItemGroup>
|
|
|
+ <InputAssemblies Include="$(OutputPath)\$(AssemblyName)1.exe" />
|
|
|
+ <InputAssemblies Include="$(OutputPath)\Mono.Cecil.dll" />
|
|
|
+ </ItemGroup>
|
|
|
+ <ILRepack Parallel="true" Internalize="true" DebugInfo="true" PrimaryAssemblyFile="$(OutputPath)\$(AssemblyName)1.exe" InputAssemblies="@(InputAssemblies)" TargetKind="Exe" TargetPlatformVersion="v2" OutputFile="$(OutputPath)\$(AssemblyName).exe" />
|
|
|
+ <Delete Files="@(InputAssemblies)" />
|
|
|
+ <Delete Files="$(OutputPath)\0Harmony.dll" />
|
|
|
+ <Delete Files="$(OutputPath)\BepInEx.dll" />
|
|
|
</Target>
|
|
|
- <Import Project="..\packages\Costura.Fody.2.0.0\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.2.0.0\build\Costura.Fody.targets')" />
|
|
|
- <Import Project="..\packages\Fody.3.0.3\build\Fody.targets" Condition="Exists('..\packages\Fody.3.0.3\build\Fody.targets')" />
|
|
|
+ <!-- /ILRepack -->
|
|
|
+ <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')" />
|
|
|
</Project>
|