We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8791f6e commit 44fa49fCopy full SHA for 44fa49f
test/Microsoft.NET.TestFramework/Utilities/MachOSignature.cs
@@ -9,7 +9,9 @@ namespace Microsoft.NET.TestFramework.Utilities
9
{
10
public static class MachOSignature
11
12
+#if NET
13
[SupportedOSPlatform("osx")]
14
+#endif
15
public static bool HasValidMachOSignature(FileInfo file, ITestOutputHelper log)
16
17
var codesignPath = @"/usr/bin/codesign";
@@ -27,7 +29,7 @@ public static bool HasMachOSignatureLoadCommand(FileInfo file)
27
29
* - 4-byte command size
28
30
* - variable length command-specific data
31
*/
- const uint LC_CODE_SIGNATURE = 0x1D;
32
+ const uint LC_CODE_SIGNATURE = 0x0000001D;
33
using (var stream = file.OpenRead())
34
35
// Read the MachO magic number to determine endianness
0 commit comments