diff --git a/Directory.Build.targets b/Directory.Build.targets
index 1dc7daa031..60014e02b9 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -80,7 +80,7 @@
portable
-
+
$(DefineConstants);FEATURE_ARRAY_FILL
@@ -93,6 +93,13 @@
+
+
+
+ $(DefineConstants);FEATURE_STRING_CONTAINS_STRINGCOMPARISON
+
+
+
diff --git a/src/Lucene.Net.Benchmark/ByTask/Benchmark.cs b/src/Lucene.Net.Benchmark/ByTask/Benchmark.cs
index 46223a2ade..dae4477cf4 100644
--- a/src/Lucene.Net.Benchmark/ByTask/Benchmark.cs
+++ b/src/Lucene.Net.Benchmark/ByTask/Benchmark.cs
@@ -58,8 +58,7 @@ public Benchmark(TextReader algReader)
}
catch (Exception e) when (e.IsException())
{
- //e.printStackTrace();
- Console.Error.WriteLine(e.ToString());
+ e.PrintStackTrace();
throw new Exception("Error: cannot init PerfRunData!", e);
}
@@ -145,7 +144,7 @@ public static void Exec(string[] args)
}
catch (Exception e) when (e.IsException())
{
- Console.Error.WriteLine(e.ToString());
+ e.PrintStackTrace();
Environment.Exit(1);
}
@@ -160,7 +159,7 @@ public static void Exec(string[] args)
catch (Exception e) when (e.IsException())
{
Console.Error.WriteLine("Error: cannot execute the algorithm! " + e.Message);
- Console.Error.WriteLine(e.ToString());
+ e.PrintStackTrace();
}
Console.WriteLine("####################");
diff --git a/src/Lucene.Net.Benchmark/ByTask/Feeds/EnwikiQueryMaker.cs b/src/Lucene.Net.Benchmark/ByTask/Feeds/EnwikiQueryMaker.cs
index 08df36a10e..fa709819b9 100644
--- a/src/Lucene.Net.Benchmark/ByTask/Feeds/EnwikiQueryMaker.cs
+++ b/src/Lucene.Net.Benchmark/ByTask/Feeds/EnwikiQueryMaker.cs
@@ -123,7 +123,7 @@ private static Query[] CreateQueries(IList