Get Assemblies In Folder - CSharp System.Reflection

CSharp examples for System.Reflection:Assembly

Description

Get Assemblies In Folder

Demo Code


using System.Reflection;
using System.Linq;
using System.IO;// ww w.  jav a  2s .c o  m
using System.Diagnostics;
using System.Collections.Generic;
using System;

public class Main{
        private static string[] GetAssembliesInFolder(string assemblyPrefix)
        {
            string baseFolder = GetAppAssembliesFolder();
            Trace.TraceInformation("Directorio base de los assemblies:: " + baseFolder);
            return Directory.GetFiles(baseFolder, assemblyPrefix + "*.dll");
        }
}

Related Tutorials