You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

6 years ago
6 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="PostBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  3. <PropertyGroup>
  4. <OPath></OPath>
  5. <SolDir></SolDir>
  6. </PropertyGroup>
  7. <UsingTask TaskName="AssemblyRename" AssemblyFile="$(SolDir)BuildTools\AssemblyRenameStep\bin\$(Configuration)\AssemblyRenameStep.dll" />
  8. <Target Name="PostBuild">
  9. <Message Text="Relocating" Importance="normal" />
  10. <ItemGroup>
  11. <SystemFiles Include="$(OPath)IPA.Injector.*" />
  12. <SystemFiles Include="$(OPath)IPA.Loader.*" />
  13. <SystemFiles Include="$(OPath)Libraries\Mono\**\*" />
  14. <OldLibFiles Include="$(OPath)Libs\**\*" />
  15. </ItemGroup>
  16. <Move SourceFiles="@(SystemFiles)" DestinationFolder="$(OPath)Data\Managed" />
  17. <RemoveDir Directories="$(OPath)Libraries\Mono" />
  18. <Delete Files="@(OldLibFiles)" />
  19. <RemoveDir Directories="$(OPath)Libs" />
  20. <ItemGroup>
  21. <LibFiles Include="$(OPath)**\*" Exclude="$(OPath)Data\**\*;$(OPath)Libs\**\*" />
  22. </ItemGroup>
  23. <Move SourceFiles="@(LibFiles)" DestinationFolder="$(OPath)Libs\" />
  24. <RemoveDir Directories="$(OPath)Libraries\Included" />
  25. <RemoveDir Directories="$(OPath)Libraries" />
  26. <ItemGroup>
  27. <ToRename Include="$(OPath)Libs\**\*.dll" />
  28. </ItemGroup>
  29. <AssemblyRename Assemblies="@(ToRename)" />
  30. </Target>
  31. </Project>