NAnt.Core.FrameworkInfo.ResolveAssembly C# (CSharp) Méthode

ResolveAssembly() public méthode

Resolves the specified assembly to a full path by matching it against the reference assemblies.
Whether the file name is matched case-sensitively depends on the operating system.
public ResolveAssembly ( string fileName ) : string
fileName string The file name of the assembly to resolve (without path information).
Résultat string
        public string ResolveAssembly(string fileName)
        {
            string resolvedAssembly = null;

            foreach (FileSet fileset in ReferenceAssemblies) {
                resolvedAssembly = fileset.Find (fileName);
                if (resolvedAssembly != null) {
                    break;
                }
            }
            return resolvedAssembly;
        }