void CreateProjectFiles() { SlnFile = SourceDir.GetFile(_solutionName); var sol = new SolutionFile(SlnFile, SolutionConstants.VisualStudio2010Version); if (_solutionHasAddin) { sol.OpenWrapAddInEnabled = true; } var projectFile = SourceDir.GetDirectory(_project.Name).GetFile(_project.Name + ".csproj"); _project.Write(projectFile); sol.AddProject(projectFile); sol.Save(); }
public async Task <SolutionFile> BuildAsync() { var solution = new SolutionFile(_solutionOptions.Directory, _solutionOptions.Name); if (!_projectOptions.Any()) { return(solution); } foreach (var item in _projectOptions) { var project = await BuildProjectAsync(item).ConfigureAwait(false); solution.AddProject(project); } return(solution); }