AvalonStudio.Projects.OmniSharp.OmniSharpSolution.LoadSolution C# (CSharp) Method

LoadSolution() private method

private LoadSolution ( string path ) : System.Threading.Tasks.Task
path string
return System.Threading.Tasks.Task
        private async Task LoadSolution (string path)
        {
            await server.StartAsync(Path.GetDirectoryName(path));

            var workspace = await server.SendRequest(new WorkspaceInformationRequest() { ExcludeSourceFiles = false });

            foreach(var project in workspace.MsBuild.Projects)
            {
                AddProject(OmniSharpProject.Create(this, project.Path, project));
            }

            CurrentDirectory = Path.GetDirectoryName(path);
        }

Usage Example

Ejemplo n.º 1
0
        public static async Task <OmniSharpSolution> Create(string path)
        {
            OmniSharpSolution result = new OmniSharpSolution();

            await result.LoadSolution(path);

            return(result);
        }
All Usage Examples Of AvalonStudio.Projects.OmniSharp.OmniSharpSolution::LoadSolution