Example #1
0
        private static IEnumerable <Assembly> GetNancyReferencingAssemblies()
        {
#if CORE
            var assemblyCatalog =
                new DependencyContextAssemblyCatalog();

            return(assemblyCatalog.GetAssemblies());
#else
            return(AppDomain.CurrentDomain.GetAssemblies().Where(IsNancyReferencing).Where(assembly => !assembly.ReflectionOnly));
#endif
        }
        private static IEnumerable<Assembly> GetNancyReferencingAssemblies()
        {
#if CORE
            var assemblyCatalog =
                new DependencyContextAssemblyCatalog();

            return assemblyCatalog.GetAssemblies();
#else
            return AppDomain.CurrentDomain.GetAssemblies().Where(IsNancyReferencing).Where(assembly => !assembly.ReflectionOnly);
#endif
        }