This commit is contained in:
Wojtek Figat
2023-04-12 11:21:55 +02:00
parent 1a604e24a0
commit 99566a0f0f
3 changed files with 9 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ public class nethost : ThirdPartyModule
case TargetPlatform.XboxOne:
case TargetPlatform.XboxScarlett:
case TargetPlatform.UWP:
if (hostRuntime.Type == DotNetSdk.HostType.CoreCRL)
if (hostRuntime.Type == DotNetSdk.HostType.CoreCLR)
{
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "nethost.lib"));
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "nethost.dll"));
@@ -93,10 +93,10 @@ public class nethost : ThirdPartyModule
options.PublicDefinitions.Add("DOTNET_HOST_RUNTIME_IDENTIFIER=" + DotNetSdk.GetHostRuntimeIdentifier(options.Platform.Target, options.Architecture));
switch (hostRuntime.Type)
{
case DotNetSdk.HostType.CoreCRL:
case DotNetSdk.HostType.CoreCLR:
{
// Use CoreCRL for runtime hosting
options.PublicDefinitions.Add("DOTNET_HOST_CORECRL");
// Use CoreCLR for runtime hosting
options.PublicDefinitions.Add("DOTNET_HOST_CORECLR");
options.PublicIncludePaths.Add(hostRuntime.Path);
break;
}