Remove any leftover executable files deployed from .NET SDK
This commit is contained in:
@@ -271,6 +271,17 @@ bool DeployDataStep::Perform(CookingData& data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove any leftover files copied from .NET SDK that are not needed by the engine runtime
|
||||||
|
{
|
||||||
|
Array<String> files;
|
||||||
|
FileSystem::DirectoryGetFiles(files, dstDotnet, TEXT("*.exe"));
|
||||||
|
for (const String& file : files)
|
||||||
|
{
|
||||||
|
LOG(Info, "Removing '{}'", FileSystem::ConvertAbsolutePathToRelative(dstDotnet, file));
|
||||||
|
FileSystem::DeleteFile(file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Optimize deployed C# class library (remove DLLs unused by scripts)
|
// Optimize deployed C# class library (remove DLLs unused by scripts)
|
||||||
if (aotMode == DotNetAOTModes::None && buildSettings.SkipUnusedDotnetLibsPackaging)
|
if (aotMode == DotNetAOTModes::None && buildSettings.SkipUnusedDotnetLibsPackaging)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user