private static Factory.Collection _LoadPluginsFunc(ProjectDOM.Project project, PathString prjDir)
        {
            LoadProjectAssemblies(project, prjDir);

            if (true) // load locally referenced assemblies
            {
                var entry = AssemblyServices.GetEntryAssembly();

                if (entry != null)
                {
                    var arefs = entry.GetReferencedAssemblies();
                    foreach (var aname in arefs)
                    {
                        if (string.IsNullOrWhiteSpace(aname.CodeBase))
                        {
                            continue;
                        }

                        PluginLoader.Instance.UsePlugin(new PathString(aname.CodeBase));
                    }
                }
            }


            return(PluginLoader.Instance.GetPlugins().GetContentInfoCollection());
        }
        private static Factory.Collection _LoadPluginsFunc(ProjectDOM.Project project, PathString prjDir)
        {
            LoadProjectAssemblies(project, prjDir);

            var plugins = new Factory.Collection();

            return(PluginLoader.Instance.GetPlugins().GetContentInfoCollection());
        }
Ejemplo n.º 3
0
        private static void LoadProjectAssemblies(ProjectDOM.Project project, PathString prjDir)
        {
            foreach (var rpath in project.References)
            {
                var fullPath = prjDir.MakeAbsolutePath(rpath);

                PluginLoader.Instance.UsePlugin(fullPath);
            }
        }
 private static Factory.Collection _LoadPluginsFunc(ProjectDOM.Project project, PathString prjDir)
 {
     throw new PlatformNotSupportedException();
 }