From 9c5273f63c4a5313187b164c9c0e7ff1739393df Mon Sep 17 00:00:00 2001 From: xieguigang Date: Thu, 9 Mar 2023 18:08:12 +0800 Subject: [PATCH] fix of the namespace imports between different .NET clr environment --- Parallel/IpcParallel/IDelegate.vb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Parallel/IpcParallel/IDelegate.vb b/Parallel/IpcParallel/IDelegate.vb index 2af6ee1..328c00d 100644 --- a/Parallel/IpcParallel/IDelegate.vb +++ b/Parallel/IpcParallel/IDelegate.vb @@ -44,10 +44,11 @@ Imports System.Reflection Imports Microsoft.VisualBasic.Scripting.SymbolBuilder -#If netcore5 = 1 Then +Imports TypeInfo = Microsoft.VisualBasic.Scripting.MetaData.TypeInfo + +#If NETCOREAPP Then Imports Microsoft.VisualBasic.ApplicationServices.Development.NetCore5 #End If -Imports TypeInfo = Microsoft.VisualBasic.Scripting.MetaData.TypeInfo ''' ''' remote method handler @@ -114,7 +115,7 @@ Public Class IDelegate Public Function GetMethod() As MethodInfo Dim type As Type = provideType() -#If netcore5 = 1 Then +#If NETCOREAPP Then Call deps.TryHandleNetCore5AssemblyBugs(package:=type) #End If