private void AddFrameworkServices(ServiceProvider serviceProvider, ProjectContext context, string nugetPackageDir) { var applicationInfo = new ApplicationInfo(context.RootProject.Identity.Name, context.ProjectDirectory); serviceProvider.Add <ProjectContext>(context); serviceProvider.Add <CodeAnalysis.Workspace>(context.CreateWorkspace()); serviceProvider.Add <IApplicationInfo>(applicationInfo); serviceProvider.Add <ICodeGenAssemblyLoadContext>(new DefaultAssemblyLoadContext()); serviceProvider.Add <ILibraryManager>(new LibraryManager(context)); serviceProvider.Add <ILibraryExporter>(new LibraryExporter(context, applicationInfo)); }