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.

37 lines
1.5 KiB

6 years ago
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)AsyncBridge.*" />
  14. <SystemFiles Include="$(OPath)System.Threading.*" />
  15. <SystemFiles Include="$(OPath)Net3-Proxy.*" />
  16. <SystemFiles Include="$(OPath)Libraries\Mono\**\*" />
  17. <OldLibFiles Include="$(OPath)Libs\**\*" />
  18. </ItemGroup>
  19. <Move SourceFiles="@(SystemFiles)" DestinationFolder="$(OPath)Data\Managed" />
  20. <RemoveDir Directories="$(OPath)Libraries\Mono" />
  21. <Delete Files="@(OldLibFiles)" />
  22. <RemoveDir Directories="$(OPath)Libs" />
  23. <ItemGroup>
  24. <LibFiles Include="$(OPath)**\*" Exclude="$(OPath)Data\**\*;$(OPath)Libs\**\*" />
  25. </ItemGroup>
  26. <Move SourceFiles="@(LibFiles)" DestinationFolder="$(OPath)Libs\" />
  27. <RemoveDir Directories="$(OPath)Libraries\Included" />
  28. <RemoveDir Directories="$(OPath)Libraries" />
  29. <ItemGroup>
  30. <ToRename Include="$(OPath)Libs\**\*.dll" />
  31. </ItemGroup>
  32. <AssemblyRename Assemblies="@(ToRename)" />
  33. </Target>
  34. </Project>