Bsm.Arcache.Runner.csproj 1.4 KB

123456789101112131415161718192021
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>Exe</OutputType>
  4. <TargetFrameworks>net461</TargetFrameworks>
  5. <LangVersion>9.0</LangVersion>
  6. </PropertyGroup>
  7. <ItemGroup>
  8. <PackageReference Include="ILRepack" Version="2.0.18" />
  9. </ItemGroup>
  10. <ItemGroup>
  11. <ProjectReference Include="..\Bsm.Core\Bsm.Core.csproj" />
  12. </ItemGroup>
  13. <Target Name="PostBuild" AfterTargets="PostBuildEvent">
  14. <Exec Command="if $(ConfigurationName) == Release if not exist &quot;$(TargetDir)Packed&quot; md &quot;$(TargetDir)Packed&quot;&#xD;&#xA;&#xD;&#xA;if $(ConfigurationName) == Release setlocal enabledelayedexpansion enableextensions&#xD;&#xA;if $(ConfigurationName) == Release set DLL_LIST=&#xD;&#xA;if $(ConfigurationName) == Release for %25%25x in ($(TargetDir)*.dll) do set DLL_LIST=!DLL_LIST! &quot;%25%25x&quot;&#xD;&#xA;if $(ConfigurationName) == Release echo dlls: !DLL_LIST!&#xD;&#xA;&#xD;&#xA;if $(ConfigurationName) == Release $(ILRepack) /ndebug &quot;/out:$(TargetDir)Packed\$(TargetFileName)&quot; &quot;$(TargetPath)&quot; !DLL_LIST!&#xD;&#xA;if $(ConfigurationName) == Release if exist &quot;$(TargetDir)Packed\$(TargetFileName).config&quot; del &quot;$(TargetDir)Packed\$(TargetFileName).config&quot;&#xD;&#xA;REM if $(ConfigurationName) == Release copy /y &quot;$(TargetDir)Packed\$(TargetFileName)&quot; &quot;$(BeatSaberDir)\Beat Saber_Data\CustomLevels\$(TargetFileName)&quot;" />
  15. </Target>
  16. </Project>