Exemple #1
0
		private static Solution LoadSolution(ProjectOption options)
		{
			var currentDir = Directory.GetCurrentDirectory();

			var solutionFile = Path.Combine(currentDir, options.Solution);

			if (System.IO.File.Exists(solutionFile))
			{
				return Solution.Load(solutionFile);
			}

			throw new Exception("Solution file: " + options.Solution + "could not be found.");
		}
Exemple #2
0
        private static Solution LoadSolution(ProjectOption options)
        {
            var currentDir = Directory.GetCurrentDirectory();

            var solutionFile = Path.Combine(currentDir, options.Solution);

            if (System.IO.File.Exists(solutionFile))
            {
                return(Solution.Load(solutionFile));
            }

            throw new Exception("Solution file: " + options.Solution + "could not be found.");
        }
Exemple #3
0
        private static ISolution LoadSolution(ProjectOption options)
        {
            var currentDir = Directory.GetCurrentDirectory();

            var solutionFile = Path.Combine(currentDir, options.Solution);

            if (System.IO.File.Exists(solutionFile))
            {
                return(AvalonStudioSolution.LoadAsync(solutionFile).GetAwaiter().GetResult());
            }

            throw new Exception("Solution file: " + options.Solution + "could not be found.");
        }