Skip to content

Commit 8db0aff

Browse files
committed
fix build
1 parent 7e64d20 commit 8db0aff

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

sources/RevitDBExplorer/Assemblies.xaml.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Collections.ObjectModel;
43
using System.ComponentModel;
54
using System.Linq;
65
using System.Reflection;
76
using System.Runtime.CompilerServices;
8-
using System.Runtime.Loader;
9-
using System.Text;
10-
using System.Threading.Tasks;
117
using System.Windows;
128
using System.Windows.Controls;
139
using System.Windows.Data;
14-
using System.Windows.Documents;
15-
using System.Windows.Input;
16-
using System.Windows.Media;
17-
using System.Windows.Media.Imaging;
18-
using System.Windows.Shapes;
1910
using RevitDBExplorer.WPF;
2011

2112
// (c) Revit Database Explorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/license.md
@@ -100,10 +91,20 @@ public AssemblyViewModel(int no, Assembly asm)
10091
public bool Filter(string text)
10192
{
10293
if (string.IsNullOrEmpty(text)) return true;
94+
95+
#if R2025_MIN
10396
if (Name?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true;
10497
if (Path?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true;
10598
if (AssemblyLoadContext?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true;
10699
if (Version?.Contains(text, StringComparison.OrdinalIgnoreCase) == true) return true;
100+
#endif
101+
102+
#if R2024_MAX
103+
if (Name?.Contains(text) == true) return true;
104+
if (Path?.Contains(text) == true) return true;
105+
if (AssemblyLoadContext?.Contains(text) == true) return true;
106+
if (Version?.Contains(text) == true) return true;
107+
#endif
107108

108109
return false;
109110
}

0 commit comments

Comments
 (0)