How to load assemblies located in a folder in .net core console app : <p>I'm making a console app on .Net Core platform and was wondering, how does one load assemblies (.dll files) and instantiate classes using C# dynamic features? It seems so much different than .Net 4.X and it's not really documented...</p>

<p>For example let's say I have a class library (.Net Core) and it has only one class:</p>

<pre><code>namespace MyClassLib.SampleClasses
{
    public class Sample
    {
        public string SayHello(string name)
        {
            return $"Hello {name}";
        }

        public DateTime SayDateTime()
        {
            return DateTime.Now;
        }
    }
}
</code></pre>

<p>So the name of the dll file would be <code>MyClassLib.dll</code> and its located in <code>/dlls/MyClassLib.dll</code>.</p>

<p>Now I want to load this in a simple console app (.Net Core) and instantiate the <code>Sample</code> class and call the methods using dynamic features of C# in the following console app:</p>

<pre><code>namespace AssemblyLoadingDynamic
{
    public class Program
    {
        public static void Main(string[] args)
        {
            // load the assembly and use the classes
        }
    }
}
</code></pre>

<p><strong>Note:</strong>
By .Net Core I mean RC2 version.</p>
