コード例 #1
0
ファイル: SolutionBuilder.cs プロジェクト: p3s/craftsman
        public static void BuildAuthServerProject(string solutionDirectory, string authServerProjectName, IFileSystem fileSystem)
        {
            var projectExists = File.Exists(Path.Combine(solutionDirectory, authServerProjectName, $"{authServerProjectName}.csproj"));

            if (projectExists)
            {
                return;
            }

            var projectClassPath = ClassPathHelper.AuthServerProjectClassPath(solutionDirectory, authServerProjectName);

            AuthServerProjBuilder.CreateProject(solutionDirectory, authServerProjectName, fileSystem);
            Utilities.ExecuteProcess("dotnet", $@"sln add ""{projectClassPath.FullClassPath}""", solutionDirectory);
        }