|
|
- <?xml version="1.0" encoding="utf-8"?>
- <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{D46F0C58-30EB-405F-8B9B-23406DB31AD3}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>IPA.Injector</RootNamespace>
- <AssemblyName>IPA.Injector</AssemblyName>
- <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <Deterministic>true</Deterministic>
- <PathMap>$(SolutionDir)=C:\</PathMap>
- <DebugType>portable</DebugType>
- <LangVersion>8.0</LangVersion>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)' == 'Net4-Debug'">
- <FrameworkFlag>Net4</FrameworkFlag>
- <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <OutputPath>bin\Net4\Debug\</OutputPath>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)' == 'Net3-Debug'">
- <FrameworkFlag>Net3</FrameworkFlag>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <OutputPath>bin\Net3\Debug\</OutputPath>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)' == 'Net4-Release'">
- <FrameworkFlag>Net4</FrameworkFlag>
- <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
- <Optimize>true</Optimize>
- <DefineConstants>TRACE</DefineConstants>
- <OutputPath>bin\Net4\Release\</OutputPath>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)' == 'Net3-Release'">
- <FrameworkFlag>Net3</FrameworkFlag>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <Optimize>true</Optimize>
- <DefineConstants>TRACE</DefineConstants>
- <OutputPath>bin\Net3\Release\</OutputPath>
- </PropertyGroup>
- <PropertyGroup>
- <DefineConstants Condition="'$(FrameworkFlag)' == 'Net4'">$(DefineConstants);NET4</DefineConstants>
- <DefineConstants Condition="'$(FrameworkFlag)' == 'Net3'">$(DefineConstants);NET3</DefineConstants>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="UnityEngine.CoreModule" Condition=" '$(FrameworkFlag)' == 'Net4' ">
- <HintPath>..\Refs\UnityEngine.CoreModule.Net4.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="UnityEngine.CoreModule" Condition=" '$(FrameworkFlag)' == 'Net3' ">
- <HintPath>..\Refs\UnityEngine.CoreModule.Net3.dll</HintPath>
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AntiPiracy.cs" />
- <Compile Include="Backups\BackupManager.cs" />
- <Compile Include="Backups\BackupUnit.cs" />
- <Compile Include="Bootstrapper.cs" />
- <Compile Include="GameVersionEarly.cs" />
- <Compile Include="Injector.cs" />
- <Compile Include="PermissionFix.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Updates.cs" />
- <Compile Include="Virtualizer.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\IPA.Loader\IPA.Loader.csproj">
- <Project>{14AC8224-C7D7-43AF-9E8F-675A7DDBA56F}</Project>
- <Name>IPA.Loader</Name>
- </ProjectReference>
- <ProjectReference Include="..\Net3-Proxy\Net3-Proxy.csproj" Condition=" '$(FrameworkFlag)' == 'Net3' ">
- <Project>{642F52DA-90F9-40E3-8784-6964F36752FB}</Project>
- <Name>Net3-Proxy</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup Condition=" '$(FrameworkFlag)' == 'Net4' ">
- <Content Include="..\Libs\I18N.Net4.dll">
- <Link>Libraries\Mono\I18N.dll</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="..\Libs\I18N.West.Net4.dll">
- <Link>Libraries\Mono\I18N.West.dll</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="..\Libs\Microsoft.CSharp.dll">
- <Link>Libraries\Mono\Microsoft.CSharp.dll</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="..\Libs\System.Runtime.Serialization.Net4.dll">
- <Link>Libraries\Mono\System.Runtime.Serialization.dll</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <ItemGroup Condition=" '$(FrameworkFlag)' == 'Net3' ">
- <Content Include="..\Libs\I18N.Net3.dll">
- <Link>Libraries\Mono\I18N.dll</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="..\Libs\I18N.West.Net3.dll">
- <Link>Libraries\Mono\I18N.West.dll</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- <Content Include="..\Libs\System.Runtime.Serialization.Net3.dll">
- <Link>Libraries\Mono\System.Runtime.Serialization.dll</Link>
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <ItemGroup>
- <PackageReference Include="Mono.Cecil">
- <Version>0.10.4</Version>
- </PackageReference>
- <PackageReference Include="SemanticVersioning">
- <Version>1.2.2</Version>
- </PackageReference>
- <PackageReference Include="AsyncBridge" Condition="'$(FrameworkFlag)' == 'Net3'">
- <Version>0.3.1</Version>
- </PackageReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <Target Name="AfterBuild">
- <Message Text="Relocating" Importance="normal" />
- <ItemGroup>
- <SystemFiles Include="$(OutputPath)IPA.Injector.*" />
- <SystemFiles Include="$(OutputPath)IPA.Loader.*" />
- <SystemFiles Include="$(OutputPath)AsyncBridge.*" Condition="'$(FrameworkFlag)' == 'Net3'" />
- <SystemFiles Include="$(OutputPath)System.*" />
- <SystemFiles Include="$(OutputPath)Portable.System.*" />
- <SystemFiles Include="$(OutputPath)Net3-Proxy.*" />
- <SystemFiles Include="$(OutputPath)Libraries\Mono\**\*" />
- <OldLibFiles Include="$(OutputPath)Libs\**\*" />
- </ItemGroup>
- <Move SourceFiles="@(SystemFiles)" DestinationFolder="$(OutputPath)Data\Managed" />
- <RemoveDir Directories="$(OutputPath)Libraries\Mono" />
-
- <Delete Files="@(OldLibFiles)" />
- <RemoveDir Directories="$(OutputPath)Libs" />
- <ItemGroup>
- <LibFiles Include="$(OutputPath)**\*" Exclude="$(OutputPath)Data\**\*;$(OutputPath)Libs\**\*" />
- </ItemGroup>
- <Move SourceFiles="@(LibFiles)" DestinationFolder="$(OutputPath)Libs\" />
- <RemoveDir Directories="$(OutputPath)Libraries\Included" />
- <RemoveDir Directories="$(OutputPath)Libraries" />
- </Target>
- </Project>
|