Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World with Assembly Reference!");

            var dependentClass = new DependentClass();

            dependentClass.Method();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World with NuGet!");

            var location = Path.GetDirectoryName(typeof(Program).Assembly.Location);

            AssemblyLoadContext.Default.LoadFromAssemblyPath(Path.Combine(location !, "BaseLibrary.dll"));

            var dependentClass = new DependentClass();

            dependentClass.Method();
        }