This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit a38e089a641ad81712d572d286ce8fcb7e20b708
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Sep 11 11:21:20 2020 +0700

    Directory.Build.targets: Added FEATURE_ASSEMBLY_GETCALLINGASSEMBLY and 
implemented throughout solution
---
 Directory.Build.targets                             | 1 +
 src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Directory.Build.targets b/Directory.Build.targets
index dd7223b..47a5599 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -59,6 +59,7 @@
 
     
<DefineConstants>$(DefineConstants);FEATURE_APPDOMAIN_BASEDIRECTORY</DefineConstants>
     
<DefineConstants>$(DefineConstants);FEATURE_APPDOMAIN_ISFULLYTRUSTED</DefineConstants>
+    
<DefineConstants>$(DefineConstants);FEATURE_ASSEMBLY_GETCALLINGASSEMBLY</DefineConstants>
     
<DefineConstants>$(DefineConstants);FEATURE_CONCURRENTMERGESCHEDULER</DefineConstants>
     
<DefineConstants>$(DefineConstants);FEATURE_CULTUREINFO_GETCULTURES</DefineConstants>
     
<DefineConstants>$(DefineConstants);FEATURE_DTD_PROCESSING</DefineConstants>
diff --git a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs 
b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
index f584181..32ab341 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -1062,7 +1062,7 @@ namespace Lucene.Net.Util
                 _testClassName = context.FullyQualifiedTestClassName;
                 _testName = context.TestName;
 
-#if !NETSTANDARD1_6
+#if FEATURE_ASSEMBLY_GETCALLINGASSEMBLY
                 var callingAssembly = Assembly.GetCallingAssembly();
                 _testClassType = callingAssembly.GetType(_testClassName);
 #else

Reply via email to