I use reflection to register default instances to invert the control. I need to scan all loaded assemblies and then iterate over each type and register. The problem is that in my visual studio code file I don't have the Assembly.GetExecutingAssembly() method or any other methods that I usually expected.
Why is this happening. My code should look like this:
foreach (var type in (Assembly.GetExecutingAssembly().GetTypes()) { if (type.IsClass && !type.IsAbstract) {
Alecu source share