コード例 #1
0
ファイル: SolutionBuilder.cs プロジェクト: p3s/craftsman
        private static void BuildSharedTestProject(string solutionDirectory, string testDirectory, string projectBaseName)
        {
            var solutionFolder       = testDirectory.GetSolutionFolder(solutionDirectory);
            var testProjectClassPath = ClassPathHelper.SharedTestProjectRootClassPath(testDirectory, "", projectBaseName);

            SharedTestsCsProjBuilder.CreateTestsCsProj(testDirectory, projectBaseName);
            Utilities.ExecuteProcess("dotnet", $@"sln add ""{testProjectClassPath.FullClassPath}"" --solution-folder {solutionFolder}", solutionDirectory);
        }
コード例 #2
0
ファイル: SolutionBuilder.cs プロジェクト: znedw/craftsman
        private static void BuildSharedTestProject(string solutionDirectory, string testDirectory, string projectBaseName, bool addJwtAuth)
        {
            var solutionFolder       = testDirectory.Replace(solutionDirectory, "").Replace(Path.DirectorySeparatorChar.ToString(), "");
            var testProjectClassPath = ClassPathHelper.SharedTestProjectRootClassPath(testDirectory, "", projectBaseName);

            SharedTestsCsProjBuilder.CreateTestsCsProj(testDirectory, projectBaseName);
            Utilities.ExecuteProcess("dotnet", $@"sln add ""{testProjectClassPath.FullClassPath}"" --solution-folder {solutionFolder}", solutionDirectory);
        }