static void Main(string[] args) { Console.WriteLine("Hello World with Assembly Reference!"); var dependentClass = new DependentClass(); dependentClass.Method(); }
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(); }