fun validate()

in rider/src/main/kotlin/com/jetbrains/aspire/rider/run/file/AspireFileConfigurationParameters.kt [69:92]


    fun validate() {
        if (!project.solution.isLoaded.hasTrueValue) {
            throw RuntimeConfigurationError(DotNetProjectConfigurationParameters.SOLUTION_IS_LOADING)
        }

        if (filePath.isEmpty()) {
            throw RuntimeConfigurationError(DotNetProjectConfigurationParameters.PROJECT_NOT_SPECIFIED)
        }

//        if (profileName.isEmpty()) {
//            throw RuntimeConfigurationError(RiderRunBundle.message("launch.profile.is.not.specified"))
//        }

        if (!trackWorkingDirectory) {
            val workingDirectoryPath = Path(workingDirectory)
            if (!workingDirectoryPath.exists() || !workingDirectoryPath.isDirectory())
                throw RuntimeConfigurationError(
                    RiderRunBundle.message(
                        "dialog.message.invalid.working.dir",
                        workingDirectory.ifEmpty { "<empty>" }
                    )
                )
        }
    }