﻿using System;
using System.IO;
using System.Reflection;

namespace Serilog.Generator.Configuration
{
    static class CurrentDirectoryAssemblyLoader
    {
        public static void Install()
        {
            AppDomain.CurrentDomain.AssemblyResolve += (s, e) =>
            {
                var assemblyPath = Path.Combine(Environment.CurrentDirectory, e.Name + ".dll");
                return !File.Exists(assemblyPath) ? null : Assembly.LoadFrom(assemblyPath);
            };
        }
    }
}
﻿using System;
using System.IO;
using System.Reflection;

namespace Serilog.Generator.Configuration
{
    static class CurrentDirectoryAssemblyLoader
    {
        public static void Install()
        {
            AppDomain.CurrentDomain.AssemblyResolve += (s, e) =>
            {
                var assemblyPath = Path.Combine(Environment.CurrentDirectory, new AssemblyName(e.Name).Name + ".dll");
                return !File.Exists(assemblyPath) ? null : Assembly.LoadFrom(assemblyPath);
            };
        }
    }
}
Fix assembly loading name format
Fix assembly loading name format
