|
|
- <Project Sdk="Microsoft.NET.Sdk" DefaultTargets="Build">
-
- <PropertyGroup>
- <TargetFrameworks>net35;net461</TargetFrameworks>
- <Platforms>x86;x64</Platforms>
- <Configurations>Debug;Release;Verbose;Verbose_Release</Configurations>
-
- <RootNamespace>BSIPA_Meta</RootNamespace>
- <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
- <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
-
- <PackageAction>Assemble</PackageAction>
- <InnerTargets>Assemble</InnerTargets>
- </PropertyGroup>
-
- <PropertyGroup>
- <OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
-
- <IsVerbose>false</IsVerbose>
- <IsVerbose Condition="'$(Configuration)' == 'Verbose' Or '$(Configuration)' == 'Verbose_Release'">true</IsVerbose>
-
- <NoVerboseConfig>$(Configuration)</NoVerboseConfig>
- <NoVerboseConfig Condition="'$(IsVerbose)' == 'true' And '$(Configuration)' == 'Verbose'">Debug</NoVerboseConfig>
- <NoVerboseConfig Condition="'$(IsVerbose)' == 'true' And '$(Configuration)' == 'Verbose_Release'">Release</NoVerboseConfig>
-
- <ProxyConfig>Release</ProxyConfig>
- <ProxyConfig Condition="'$(IsVerbose)' == 'true'">Verbose_Release</ProxyConfig>
-
- <ProxyPlatform>Win32</ProxyPlatform>
- <ProxyPlatform Condition="'$(Platform)' == 'x64'">x64</ProxyPlatform>
- </PropertyGroup>
-
- <ItemGroup>
- <ProjectReference Include="..\IPA\IPA.csproj" AdditionalProperties="TargetFramework=net461" />
- <ProjectReference Include="..\IPA.Injector\IPA.Injector.csproj" />
- <ProjectReference Include="..\IPA.Injector\IPA.Injector.csproj" />
- <ProjectReference Include="..\Doorstop\Proxy\Proxy.vcxproj" />
- </ItemGroup>
-
- <Target Name="Restore" />
- <Target Name="Clean">
- <ItemGroup>
- <Files Include="$(OutputPath)**\*" />
- </ItemGroup>
- <Delete Files="@(Files)" />
- </Target>
- <Target Name="Rebuild">
- <CallTarget Targets="Assemble" />
- </Target>
- <Target Name="Build">
- <CallTarget Targets="Assemble" />
- </Target>
- <Target Name="CoreCompile">
- <CallTarget Targets="Assemble" />
- </Target>
- <Target Name="Assemble" Returns="$(OutputPath)">
- <Message Text="Packing..." Importance="High" />
- <Message Text="Results will be put in $(OutputPath)" Importance="High" />
- <ItemGroup>
- <InputDlls Include="$(SolutionDir)IPA.Injector\bin\$(NoVerboseConfig)\$(TargetFramework)\**\*" Exclude="$(SolutionDir)IPA.Injector\bin\$(NoVerboseConfig)\$(TargetFramework)\Libraries\**\*" />
- <InputDlls Include="$(SolutionDir)Doorstop\Proxy\bin\$(ProxyPlatform)\$(ProxyConfig)\**\*.dll" />
- <InputDlls Include="$(SolutionDir)Doorstop\Proxy\bin\$(ProxyPlatform)\$(ProxyConfig)\**\*.pdb" />
- <InputIPAFiles Include="$(SolutionDir)IPA\bin\$(Configuration)\**\*" />
- </ItemGroup>
- <Copy SourceFiles="@(InputDlls)" DestinationFolder="$(OutputPath)IPA\%(RecursiveDir)" />
- <Move SourceFiles="$(OutputPath)IPA\proxy.dll" DestinationFiles="$(OutputPath)IPA\winhttp.dll" />
- <Move Condition="Exists('$(OutputPath)IPA\proxy.pdb')" SourceFiles="$(OutputPath)IPA\proxy.pdb" DestinationFiles="$(OutputPath)IPA\winhttp.pdb" />
- <Copy SourceFiles="@(InputIPAFiles)" DestinationFolder="$(OutputPath)%(RecursiveDir)" />
- <ItemGroup>
- <BadFiles Include="$(OutputPath)*.dll" />
- <BadFiles Include="$(OutputPath)*.pdb" Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='Verbose_Release'" />
- <BadFiles Include="$(OutputPath)IPA\*.pdb" Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='Verbose_Release'" />
- </ItemGroup>
- <Delete Files="@(BadFiles)" />
- <RemoveDir Directories="$(OutputPath)Libraries\" />
- </Target>
-
- </Project>
|