Remove old Mono files when cooking game to the same output folder with dotnet7

This commit is contained in:
Wojciech Figat
2022-12-29 11:21:03 +01:00
parent 6f8c007a66
commit 45286468c9

View File

@@ -28,6 +28,11 @@ bool DeployDataStep::Perform(CookingData& data)
FileSystem::CreateDirectory(contentDir);
#if USE_NETCORE
// TODO: Optionally copy all files needed for self-contained deployment
{
// Remove old Mono files
FileSystem::DeleteDirectory(data.DataOutputPath / TEXT("Mono"));
FileSystem::DeleteFile(data.DataOutputPath / TEXT("MonoPosixHelper.dll"));
}
#else
const auto srcMono = depsRoot / TEXT("Mono");
const auto dstMono = data.DataOutputPath / TEXT("Mono");