I have two classes 'Menu' and 'Meals'. Menu needs to create an instance of Meals based on a path in Run-time. For example I have path such as C:\Users\devmachine\Documents\Visual Studio 2017\Projects\MealsLibrary\MealsLibrary\Meals.cs
Menu class is in a different solution and also in a different hard drive location.
so, far I'm trying to use Reflection.Assembly.LoadFrom but I have not success it's telling me that expects a assembly manifest.
The requirement from my work is that this class is changing all the time and therefore is not worth to add it as a reference.
So, How to create an instance of a class that is in a separate solution?
Aucun commentaire:
Enregistrer un commentaire