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.

109 lines
4.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  4. <PropertyGroup>
  5. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  6. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  7. <ProjectGuid>{23AB2621-A05C-4377-8418-85E6012C0BBE}</ProjectGuid>
  8. <OutputType>Library</OutputType>
  9. <AppDesignerFolder>Properties</AppDesignerFolder>
  10. <RootNamespace>BSIPA_ModList</RootNamespace>
  11. <AssemblyName>BSIPA-ModList</AssemblyName>
  12. <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <Deterministic>true</Deterministic>
  15. </PropertyGroup>
  16. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  17. <DebugSymbols>true</DebugSymbols>
  18. <DebugType>portable</DebugType>
  19. <Optimize>false</Optimize>
  20. <OutputPath>bin\Debug\</OutputPath>
  21. <DefineConstants>DEBUG;TRACE</DefineConstants>
  22. <ErrorReport>prompt</ErrorReport>
  23. <WarningLevel>4</WarningLevel>
  24. </PropertyGroup>
  25. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  26. <DebugType>portable</DebugType>
  27. <Optimize>true</Optimize>
  28. <OutputPath>bin\Release\</OutputPath>
  29. <DefineConstants>TRACE</DefineConstants>
  30. <ErrorReport>prompt</ErrorReport>
  31. <WarningLevel>4</WarningLevel>
  32. </PropertyGroup>
  33. <ItemGroup>
  34. <Reference Include="Assembly-CSharp">
  35. <HintPath>..\Refs\Assembly-CSharp.dll</HintPath>
  36. <Private>False</Private>
  37. </Reference>
  38. <Reference Include="BeatSaberCustomUI">
  39. <HintPath>..\Refs\BeatSaberCustomUI.dll</HintPath>
  40. <Private>False</Private>
  41. </Reference>
  42. <Reference Include="System" />
  43. <Reference Include="System.Core" />
  44. <Reference Include="System.Xml.Linq" />
  45. <Reference Include="System.Data.DataSetExtensions" />
  46. <Reference Include="Microsoft.CSharp" />
  47. <Reference Include="System.Data" />
  48. <Reference Include="System.Net.Http" />
  49. <Reference Include="System.Xml" />
  50. <Reference Include="UnityEngine.CoreModule">
  51. <HintPath>..\Refs\UnityEngine.CoreModule.dll</HintPath>
  52. <Private>False</Private>
  53. </Reference>
  54. </ItemGroup>
  55. <ItemGroup>
  56. <Compile Include="Plugin.cs" />
  57. <Compile Include="Properties\AssemblyInfo.cs" />
  58. <Compile Include="UI\ModListController.cs" />
  59. <Compile Include="UI\ModListMenu.cs" />
  60. </ItemGroup>
  61. <ItemGroup>
  62. <ProjectReference Include="..\IPA.Loader\IPA.Loader.csproj">
  63. <Project>{5ad344f0-01a0-4ca8-92e5-9d095737744d}</Project>
  64. <Name>IPA.Loader</Name>
  65. <Private>False</Private>
  66. </ProjectReference>
  67. </ItemGroup>
  68. <ItemGroup>
  69. <EmbeddedResource Include="manifest.json" />
  70. </ItemGroup>
  71. <ItemGroup>
  72. <PackageReference Include="SemanticVersioning">
  73. <Version>1.2.0</Version>
  74. </PackageReference>
  75. </ItemGroup>
  76. <ItemGroup>
  77. <EmbeddedResource Include="Icons\mod_bsipa.png" />
  78. <EmbeddedResource Include="Icons\mod_ipa.png" />
  79. </ItemGroup>
  80. <ItemGroup>
  81. <EmbeddedResource Include="Icons\self.png" />
  82. </ItemGroup>
  83. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  84. <Target Name="AfterBuild">
  85. <Message Text="Packing..." Importance="normal" />
  86. <!--<ItemGroup>
  87. <Dlls Include="$(SolutionDir)IPA.Injector\bin\$(OtherConfig)\**\*" Exclude="$(SolutionDir)IPA.Injector\bin\$(OtherConfig)\Libraries\**\*" />
  88. <Dlls Include="$(SolutionDir)Doorstop\Proxy\bin\x64\$(ProxyConfig)\**\*.dll" />
  89. <Dlls Include="$(SolutionDir)Doorstop\Proxy\bin\x64\$(ProxyConfig)\**\*.pdb" />
  90. </ItemGroup>
  91. <Copy SourceFiles="@(Dlls)" DestinationFolder="$(OutputPath)IPA\%(RecursiveDir)" />
  92. <Move SourceFiles="$(OutputPath)IPA\proxy.dll" DestinationFiles="$(OutputPath)IPA\winhttp.dll" />
  93. <Move Condition="Exists('$(OutputPath)IPA\proxy.pdb')" SourceFiles="$(OutputPath)IPA\proxy.pdb" DestinationFiles="$(OutputPath)IPA\winhttp.pdb" />
  94. <ItemGroup>
  95. <BadFiles Include="$(OutputPath)*.dll" />
  96. <BadFiles Include="$(OutputPath)*.pdb" Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='Verbose_Release'" />
  97. <BadFiles Include="$(OutputPath)IPA\*.pdb" Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='Verbose_Release'" />
  98. </ItemGroup>
  99. <Delete Files="@(BadFiles)" />
  100. <RemoveDir Directories="$(OutputPath)Libraries\" />-->
  101. <ItemGroup>
  102. <BadFiles Include="$(OutputPath)**/*" Exclude="$(OutputPath)**/$(AssemblyName).*" />
  103. </ItemGroup>
  104. <Delete Files="@(BadFiles)" />
  105. <ItemGroup>
  106. <UnBadFiles Include="$(OutputPath)*" />
  107. </ItemGroup>
  108. <Move SourceFiles="@(UnBadFiles)" DestinationFolder="$(OutputPath)Plugins/" />
  109. </Target>
  110. </Project>