123456789101112131415161718192021 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>Exe</OutputType>
- <TargetFrameworks>net461</TargetFrameworks>
- <LangVersion>9.0</LangVersion>
- </PropertyGroup>
- <ItemGroup>
- <PackageReference Include="ILRepack" Version="2.0.18" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Bsm.Core\Bsm.Core.csproj" />
- </ItemGroup>
- <Target Name="PostBuild" AfterTargets="PostBuildEvent">
- <Exec Command="if $(ConfigurationName) == Release if not exist "$(TargetDir)Packed" md "$(TargetDir)Packed"

if $(ConfigurationName) == Release setlocal enabledelayedexpansion enableextensions
if $(ConfigurationName) == Release set DLL_LIST=
if $(ConfigurationName) == Release for %25%25x in ($(TargetDir)*.dll) do set DLL_LIST=!DLL_LIST! "%25%25x"
if $(ConfigurationName) == Release echo dlls: !DLL_LIST!

if $(ConfigurationName) == Release $(ILRepack) /ndebug "/out:$(TargetDir)Packed\$(TargetFileName)" "$(TargetPath)" !DLL_LIST!
if $(ConfigurationName) == Release if exist "$(TargetDir)Packed\$(TargetFileName).config" del "$(TargetDir)Packed\$(TargetFileName).config"
REM if $(ConfigurationName) == Release copy /y "$(TargetDir)Packed\$(TargetFileName)" "$(BeatSaberDir)\Beat Saber_Data\CustomLevels\$(TargetFileName)"" />
- </Target>
- </Project>
|