Create() public static method

public static Create ( ISolution solution, string path, AvalonStudio project ) : OmniSharpProject
solution ISolution
path string
project AvalonStudio
return OmniSharpProject
Beispiel #1
0
        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);
        }