public async Task RestoreAsync(BuildIntegratedNuGetProject project) { try { var projectDirectory = Path.GetDirectoryName(project.MSBuildProjectPath); var result = await Cmder.RunAsync("dotnet", projectDirectory, "restore"); } catch (Exception ex) { Debug.WriteLine(ex); } }
public static async Task <string> FindVsMsBulidLocationAsync() { string libsPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ThirdLibs"); try { ProcessResult runResult = await Cmder.RunAsync(Path.Combine(libsPath, "vswhere.exe"), libsPath, "-latest -requires Microsoft.Component.MSBuild -find MSBuild\\**\\Bin\\Microsoft.Build.dll"); if (runResult.Success) { return(Path.GetDirectoryName(runResult.Text)); } } catch (Exception) { } return(null); }
public TestApplicationContainer() { this.manager = new DataManager(); this.cmder = new Cmder(); }