Ejemplo n.º 1
0
        private static void FindAvariaSolutionFile()
        {
            var currentExecutableFilePath = BasePathUtilities.ExecutablePathValue;

            Console.WriteLine($"Current executable file path:\n{currentExecutableFilePath}");

            var solutionFilePathProvider = new DevelopmentSolutionFilePathProvider();

            var solutionFilePath = solutionFilePathProvider.GetSolutionFilePath(currentExecutableFilePath, @"R5T.Avaria.sln");

            Console.WriteLine($"Solution file path:\n{solutionFilePath}");
        }
Ejemplo n.º 2
0
        private static void GetGitHubAccountDirectoryPath()
        {
            var currentExecutableFilePath = BasePathUtilities.ExecutablePathValue;

            Console.WriteLine($"Current executable file path:\n{currentExecutableFilePath}");

            var solutionFilePathProvider           = new DevelopmentSolutionFilePathProvider();
            var gitHubAccountDirectoryPathProvider = new StandardGitHubAccountDirectoryPathProvider();

            var solutionFilePath           = solutionFilePathProvider.GetSolutionFilePath(currentExecutableFilePath, @"R5T.Avaria.sln");
            var gitHubAccountDirectoryPath = gitHubAccountDirectoryPathProvider.GetGitHubAccountDirectoryPath(solutionFilePath);

            Console.WriteLine($"GitHub account directory path:\n{gitHubAccountDirectoryPath}");
        }
Ejemplo n.º 3
0
        private static void AddMissingDependencies(bool dryRun)
        {
            var currentExecutableFilePath = AvariaUtilities.GetExecutablePath();

            Console.WriteLine($"Current executable file path:\n{currentExecutableFilePath}");

            var solutionFilePathProvider = new DevelopmentSolutionFilePathProvider();

            var solutionFilePath = solutionFilePathProvider.GetSolutionFilePath(currentExecutableFilePath, @"R5T.Avaria.sln");

            Console.WriteLine($"Solution file path:\n{solutionFilePath}");

            AvariaUtilities.AddMissingDependencies(solutionFilePath, dryRun);
        }
Ejemplo n.º 4
0
        private static void GetLibraryProjectDirectoryPath()
        {
            var libraryName = @"R5T.NetStandard.IO.Paths.Types";

            var currentExecutableFilePath = BasePathUtilities.ExecutablePathValue;

            Console.WriteLine($"Current executable file path:\n{currentExecutableFilePath}");

            var solutionFilePathProvider           = new DevelopmentSolutionFilePathProvider();
            var gitHubAccountDirectoryPathProvider = new StandardGitHubAccountDirectoryPathProvider();
            var libraryProjectFilePathProvider     = new StandardLibraryProjectFilePathProvider();

            var solutionFilePath           = solutionFilePathProvider.GetSolutionFilePath(currentExecutableFilePath, @"R5T.Avaria.sln");
            var gitHubAccountDirectoryPath = gitHubAccountDirectoryPathProvider.GetGitHubAccountDirectoryPath(solutionFilePath);
            var libraryProjectFilePath     = libraryProjectFilePathProvider.GetLibraryProjectFilePath(gitHubAccountDirectoryPath, libraryName);

            Console.WriteLine($"Library project file path:\n{libraryProjectFilePath}");
        }