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); }
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); }