public static void RemoveIAccountService(string solutionDirectory) { var classPath = ClassPathHelper.ApplicationInterfaceClassPath(solutionDirectory, "IAccountService.cs"); if (!Directory.Exists(classPath.ClassDirectory)) { throw new DirectoryNotFoundException($"The `{classPath.ClassDirectory}` directory could not be found."); } if (!File.Exists(classPath.FullClassPath)) { throw new FileNotFoundException($"The `{classPath.FullClassPath}` file could not be found."); } File.Delete(classPath.FullClassPath); }
private static void BuildApplicationProject(string solutionDirectory, IFileSystem fileSystem) { var applicationProjectClassPath = ClassPathHelper.ApplicationProjectClassPath(solutionDirectory); ApplicationCsProjBuilder.CreateApplicationCsProj(solutionDirectory); Utilities.ExecuteProcess("dotnet", $@"sln add ""{applicationProjectClassPath.FullClassPath}"" --solution-folder {"Core"}", solutionDirectory); // base folders Directory.CreateDirectory(ClassPathHelper.DtoClassPath(solutionDirectory, "", "").ClassDirectory); Directory.CreateDirectory(ClassPathHelper.ApplicationExceptionClassPath(solutionDirectory, "").ClassDirectory); Directory.CreateDirectory(ClassPathHelper.ApplicationInterfaceClassPath(solutionDirectory, "").ClassDirectory); Directory.CreateDirectory(ClassPathHelper.ProfileClassPath(solutionDirectory, "").ClassDirectory); Directory.CreateDirectory(ClassPathHelper.ValidationClassPath(solutionDirectory, "", "").ClassDirectory); Directory.CreateDirectory(ClassPathHelper.WrappersClassPath(solutionDirectory, "").ClassDirectory); Directory.CreateDirectory(ClassPathHelper.SharedDtoClassPath(solutionDirectory, "").ClassDirectory); ApplicationServiceExtensionsBuilder.CreateApplicationServiceExtension(solutionDirectory, fileSystem); BasePaginationParametersBuilder.CreateBasePaginationParameters(solutionDirectory, fileSystem); PagedListBuilder.CreatePagedList(solutionDirectory, fileSystem); ResponseBuilder.CreateResponse(solutionDirectory, fileSystem); ApplicationExceptionsBuilder.CreateExceptions(solutionDirectory); }