File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,6 @@ public struct QualifiedModuleName
12
12
{
13
13
private static string GetDisplayName ( VBProject project )
14
14
{
15
- //Try reading the filename first
16
- try
17
- {
18
- if ( ! string . IsNullOrEmpty ( Path . GetDirectoryName ( project . BuildFileName ) ) )
19
- {
20
- return Path . GetFileName ( project . FileName ) ;
21
- }
22
- }
23
- catch
24
- { //The GetFileName getter probably threw
25
- }
26
15
27
16
if ( project . Protection == vbext_ProjectProtection . vbext_pp_none )
28
17
{
@@ -77,6 +66,19 @@ private static string GetDisplayName(VBProject project)
77
66
//The Properties collection either wasn't available, or didn't have the expected properties
78
67
}
79
68
}
69
+
70
+ //Try reading the filename
71
+ try
72
+ {
73
+ if ( ! string . IsNullOrEmpty ( Path . GetDirectoryName ( project . BuildFileName ) ) )
74
+ {
75
+ return Path . GetFileName ( project . FileName ) ;
76
+ }
77
+ }
78
+ catch
79
+ { //The GetFileName getter probably threw
80
+ }
81
+
80
82
return null ;
81
83
}
82
84
You can’t perform that action at this time.
0 commit comments