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);
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public TestApplicationContainer()
 {
     this.manager = new DataManager();
     this.cmder   = new Cmder();
 }