public void BindToProject(ICSharpProjectRoot projectRoot, IVsHierarchy hierarchy) { var projectName = Path.GetFileName(projectRoot.GetFullProjectName()); // GetFullProjectName returns the path to the project file w/o the extension? var project = new CSharpProjectShimWithServices( projectRoot, this.Workspace.ProjectTracker, id => new ProjectExternalErrorReporter(id, "CS", this.SystemServiceProvider), projectName, hierarchy, this.SystemServiceProvider, this.Workspace, this.HostDiagnosticUpdateSource); projectRoot.SetProjectSite(project); }
public void BindToProject(ICSharpProjectRoot projectRoot, IVsHierarchy hierarchy) { var projectName = Path.GetFileName(projectRoot.GetFullProjectName()); // GetFullProjectName returns the path to the project file w/o the extension? Workspace.ProjectTracker.TryDisconnectExistingDeferredProject(hierarchy, projectName); var project = new CSharpProjectShimWithServices( projectRoot, this.Workspace.ProjectTracker, id => new ProjectExternalErrorReporter(id, "CS", this.SystemServiceProvider), projectName, hierarchy, this.SystemServiceProvider, this.Workspace, this.HostDiagnosticUpdateSource, this.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<ICommandLineParserService>()); projectRoot.SetProjectSite(project); }
public CSharpProjectCodeModel(CSharpProjectShimWithServices project, VisualStudioWorkspaceImpl visualStudioWorkspace, IServiceProvider serviceProvider) : base(project, visualStudioWorkspace, serviceProvider) { _project = project; }