6
6
using System . IO ;
7
7
using System . IO . Compression ;
8
8
using System . Linq ;
9
+ # if NETFRAMEWORK
9
10
using Microsoft . SignCheck . Interop . PortableExecutable ;
11
+ #endif
10
12
using Microsoft . SignCheck . Logging ;
11
13
12
14
namespace Microsoft . SignCheck . Verification
@@ -86,21 +88,24 @@ public SignatureVerificationManager(Exclusions exclusions, Log log, SignatureVer
86
88
Log = log ;
87
89
Options = options ;
88
90
91
+ #if NETFRAMEWORK
89
92
AddFileVerifier ( new CabVerifier ( log , exclusions , options , ".cab" ) ) ;
90
93
AddFileVerifier ( new PortableExecutableVerifier ( log , exclusions , options , ".dll" ) ) ;
91
94
AddFileVerifier ( new ExeVerifier ( log , exclusions , options , ".exe" ) ) ;
92
95
AddFileVerifier ( new JarVerifier ( log , exclusions , options ) ) ;
93
96
AddFileVerifier ( new AuthentiCodeVerifier ( log , exclusions , options , ".js" ) ) ;
94
- AddFileVerifier ( new LzmaVerifier ( log , exclusions , options ) ) ;
95
97
AddFileVerifier ( new MsiVerifier ( log , exclusions , options ) ) ;
96
98
AddFileVerifier ( new MspVerifier ( log , exclusions , options ) ) ;
97
99
AddFileVerifier ( new MsuVerifier ( log , exclusions , options ) ) ;
98
- AddFileVerifier ( new NupkgVerifier ( log , exclusions , options ) ) ;
99
100
AddFileVerifier ( new AuthentiCodeVerifier ( log , exclusions , options , ".psd1" ) ) ;
100
101
AddFileVerifier ( new AuthentiCodeVerifier ( log , exclusions , options , ".psm1" ) ) ;
101
102
AddFileVerifier ( new AuthentiCodeVerifier ( log , exclusions , options , ".ps1" ) ) ;
102
103
AddFileVerifier ( new AuthentiCodeVerifier ( log , exclusions , options , ".ps1xml" ) ) ;
103
104
AddFileVerifier ( new VsixVerifier ( log , exclusions , options ) ) ;
105
+ #endif
106
+
107
+ AddFileVerifier ( new LzmaVerifier ( log , exclusions , options ) ) ;
108
+ AddFileVerifier ( new NupkgVerifier ( log , exclusions , options ) ) ;
104
109
AddFileVerifier ( new XmlVerifier ( log , exclusions , options ) ) ;
105
110
AddFileVerifier ( new ZipVerifier ( log , exclusions , options ) ) ;
106
111
}
@@ -257,7 +262,7 @@ public static FileVerifier GetFileVerifierByHeader(string path)
257
262
fileVerifier = GetFileVerifierByExtension ( ".cab" ) ;
258
263
}
259
264
}
260
-
265
+ #if NETFRAMEWORK
261
266
reader . BaseStream . Seek ( 0 , SeekOrigin . Begin ) ;
262
267
if ( stream . Length > 2 )
263
268
{
@@ -276,6 +281,7 @@ public static FileVerifier GetFileVerifierByHeader(string path)
276
281
}
277
282
}
278
283
}
284
+ #endif
279
285
}
280
286
281
287
return fileVerifier ;
0 commit comments