@@ -69,7 +69,7 @@ public bool Contains(Exclusion exclusion)
69
69
return _exclusions . Contains ( exclusion ) ;
70
70
}
71
71
72
- public bool IsExcluded ( string path , string parent , string virtualPath , string containerPath , IEnumerable < Exclusion > exclusions )
72
+ private bool IsExcluded ( string path , string parent , string virtualPath , string containerPath , IEnumerable < Exclusion > exclusions )
73
73
{
74
74
foreach ( Exclusion e in exclusions )
75
75
{
@@ -113,7 +113,8 @@ public bool IsExcluded(string path, string parent, string virtualPath, string co
113
113
/// <returns></returns>
114
114
public bool IsExcluded ( string path , string parent , string virtualPath , string containerPath )
115
115
{
116
- return IsExcluded ( path , parent , virtualPath , containerPath , _exclusions ) ;
116
+ IEnumerable < Exclusion > exclusions = _exclusions . Where ( e => ! e . Comment . Contains ( "IGNORE-STRONG-NAME" ) ) ;
117
+ return IsExcluded ( path , parent , virtualPath , containerPath , exclusions ) ;
117
118
}
118
119
119
120
/// <summary>
@@ -129,6 +130,14 @@ public bool IsDoNotSign(string path, string parent, string virtualPath, string c
129
130
return ( doNotSignExclusions . Count ( ) > 0 ) && ( IsExcluded ( path , parent , virtualPath , containerPath , doNotSignExclusions ) ) ;
130
131
}
131
132
133
+ public bool IsIgnoreStrongName ( string path , string parent , string virtualPath , string containerPath )
134
+ {
135
+ // Get all the exclusions with NO-STRONG-NAME markers and check only against those
136
+ IEnumerable < Exclusion > noStrongNameExclusions = _exclusions . Where ( e => e . Comment . Contains ( "IGNORE-STRONG-NAME" ) ) ;
137
+
138
+ return ( noStrongNameExclusions . Count ( ) > 0 ) && ( IsExcluded ( path , parent , virtualPath , containerPath , noStrongNameExclusions ) ) ;
139
+ }
140
+
132
141
/// <summary>
133
142
/// Returns true if any <see cref="Exclusion.FilePatterns"/> matches the value of <paramref name="path"/>.
134
143
/// </summary>
0 commit comments