Implement C# AOT process for .NET 7 for Windows platform
This commit is contained in:
13
Source/ThirdParty/nethost/nethost.Build.cs
vendored
13
Source/ThirdParty/nethost/nethost.Build.cs
vendored
@@ -49,8 +49,17 @@ public class nethost : ThirdPartyModule
|
||||
case TargetPlatform.XboxOne:
|
||||
case TargetPlatform.XboxScarlett:
|
||||
case TargetPlatform.UWP:
|
||||
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "nethost.lib"));
|
||||
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "nethost.dll"));
|
||||
if (hostRuntime.Type == DotNetSdk.HostType.CoreCRL)
|
||||
{
|
||||
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "nethost.lib"));
|
||||
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "nethost.dll"));
|
||||
}
|
||||
else
|
||||
{
|
||||
options.PublicDefinitions.Add("USE_MONO_DYNAMIC_LIB");
|
||||
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "coreclr.import.lib"));
|
||||
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "coreclr.dll"));
|
||||
}
|
||||
break;
|
||||
case TargetPlatform.Linux:
|
||||
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libnethost.a"));
|
||||
|
||||
Reference in New Issue
Block a user