private LoadSolution ( string path ) : System.Threading.Tasks.Task | ||
path | string | |
리턴 | 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);
}
public static async Task <OmniSharpSolution> Create(string path) { OmniSharpSolution result = new OmniSharpSolution(); await result.LoadSolution(path); return(result); }