Fix .NET files deploy regression on AOT platforms
This commit is contained in:
@@ -214,10 +214,18 @@ bool DeployDataStep::Perform(CookingData& data)
|
||||
FileSystem::NormalizePath(srcDotnet);
|
||||
LOG(Info, "Using .NET Runtime {} at {}", TEXT("Host"), srcDotnet);
|
||||
|
||||
// Get major Version
|
||||
// Get .NET runtime version
|
||||
String version;
|
||||
if (usAOT)
|
||||
{
|
||||
// Precompiled
|
||||
version = StringUtils::ToString(GAME_BUILD_DOTNET_RUNTIME_MIN_VER);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Detect from path
|
||||
Array<String> pathParts;
|
||||
srcDotnet.Split('/', pathParts);
|
||||
String version;
|
||||
for (int i = 0; i < pathParts.Count(); i++)
|
||||
{
|
||||
if (pathParts[i] == TEXT("runtimes"))
|
||||
@@ -234,12 +242,12 @@ bool DeployDataStep::Perform(CookingData& data)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (version.IsEmpty())
|
||||
{
|
||||
data.Error(TEXT("Failed to find supported .NET version for the current host platform."));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Deploy runtime files
|
||||
const Char* corlibPrivateName = TEXT("System.Private.CoreLib.dll");
|
||||
|
||||
Reference in New Issue
Block a user