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 CSharpProjectShim( projectRoot, projectName, hierarchy, this.SystemServiceProvider, this.Package.ComponentModel.GetService <IThreadingContext>()); 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? var project = new CSharpProjectShim( projectRoot, projectName, hierarchy, this.SystemServiceProvider, this.Package.ComponentModel.GetService <IThreadingContext>(), this.HostDiagnosticUpdateSource, this.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService <ICommandLineParserService>()); 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? 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? 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 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 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 projectTracker = Workspace.GetProjectTrackerAndInitializeIfNecessary(SystemServiceProvider); var project = new CSharpProjectShim( projectRoot, 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); }