You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.199
Former-commit-id: f4d318e4b2f128fa9f4d31b37bb3839a3fc0dfb2
This commit is contained in:
parent
536cd135cc
commit
5924117973
15
external/linker/corebuild/integration/ILLink.Tasks/Utils.cs
vendored
Normal file
15
external/linker/corebuild/integration/ILLink.Tasks/Utils.cs
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Mono.Cecil;
|
||||
|
||||
public class Utils
|
||||
{
|
||||
public static bool IsManagedAssembly (string fileName)
|
||||
{
|
||||
try {
|
||||
ModuleDefinition module = ModuleDefinition.ReadModule (fileName);
|
||||
return true;
|
||||
} catch (BadImageFormatException) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user