Skip to content

Commit

Permalink
Disable single-file publish
Browse files Browse the repository at this point in the history
  • Loading branch information
valters-tomsons committed May 4, 2024
1 parent 5f99545 commit 6c1e097
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/DayZLauncher.UnixPatcher/DayZLauncher.UnixPatcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PublishSingleFile>true</PublishSingleFile>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
<NoWarn>NU1702;1702</NoWarn> <!-- Ignore warning about incompatible frameworks -->
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<SelfContained>true</SelfContained>
<DebugType>embedded</DebugType>
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>

Expand All @@ -20,22 +18,10 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="../DayZLauncher.UnixPatcher.Utils/DayZLauncher.UnixPatcher.Utils.csproj">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</ProjectReference>
<ProjectReference Include="../DayZLauncher.UnixPatcher.Utils/DayZLauncher.UnixPatcher.Utils.csproj" />

<None Include="../../README.md">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<!-- These two libraries are needed outside the bundle for Cecil to reference a .NET Framework library from a modern .NET runtime -->
<Target Name="CopyFilesFromBundle" AfterTargets="Publish">
<ItemGroup>
<FilesToCopyFromBundle Include="@(FilesToBundle)" Condition="$([System.String]::new('%(Filename)').ToLower().Contains('mscorlib')) AND ('%(Extension)' == '.dll')" />
<FilesToCopyFromBundle Include="@(FilesToBundle)" Condition="$([System.String]::new('%(Filename)').ToLower().Contains('system.private.corelib')) AND ('%(Extension)' == '.dll')" />
</ItemGroup>
<Copy SourceFiles="@(FilesToCopyFromBundle)" DestinationFolder="$(PublishDir)" />
<Message Text="Copied corelib from bundle to '$(PublishDir)'" Importance="high" />
</Target>
</Project>

0 comments on commit 6c1e097

Please sign in to comment.