Skip to content

Commit

Permalink
Rename after-publish target
Browse files Browse the repository at this point in the history
  • Loading branch information
valters-tomsons committed May 4, 2024
1 parent a6dbb40 commit 5f99545
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DayZLauncher.UnixPatcher/DayZLauncher.UnixPatcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
</ItemGroup>

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

0 comments on commit 5f99545

Please sign in to comment.