// Path: src/main/java/com/danielflower/apprunner/io/LineConsumer.java
// public interface LineConsumer {
//     void consumeLine(String line);
// }
// 
// Path: src/main/java/com/danielflower/apprunner/problems/ProjectCannotStartException.java
// public class ProjectCannotStartException extends AppRunnerException {
//     public ProjectCannotStartException(String message) {
//         super(message);
//     }
// 
//     public ProjectCannotStartException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ProjectCannotStartException(Throwable cause) {
//         super(cause);
//     }
// }


import com.danielflower.apprunner.io.LineConsumer;
import com.danielflower.apprunner.problems.ProjectCannotStartException;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.util.Map;
package com.danielflower.apprunner.runners;



public class DotnetRunner implements AppRunner {
    public static final Logger log = LoggerFactory.getLogger(PythonRunner.class);

    private final File projectRoot;
    private final File projectFile;
    private final String executable;
    private Killer watchDog;
    public static final String[] startCommands = new String[] { "dotnet run" };

    public DotnetRunner(File projectRoot, File projectFile, String executable) {
        this.projectRoot = projectRoot;
        this.projectFile = projectFile;
        this.executable = executable;
    }

    @Override
    public File getInstanceDir() {
        return projectRoot;
    }

    @Override
// Path: src/main/java/com/danielflower/apprunner/io/LineConsumer.java
// public interface LineConsumer {
//     void consumeLine(String line);
// }
// 
// Path: src/main/java/com/danielflower/apprunner/problems/ProjectCannotStartException.java
// public class ProjectCannotStartException extends AppRunnerException {
//     public ProjectCannotStartException(String message) {
//         super(message);
//     }
// 
//     public ProjectCannotStartException(String message, Throwable cause) {
//         super(message, cause);
//     }
// 
//     public ProjectCannotStartException(Throwable cause) {
//         super(cause);
//     }
// }


// Path: src/main/java/com/danielflower/apprunner/runners/DotnetRunner.java
import com.danielflower.apprunner.io.LineConsumer;
import com.danielflower.apprunner.problems.ProjectCannotStartException;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.util.Map;

package com.danielflower.apprunner.runners;



public class DotnetRunner implements AppRunner {
    public static final Logger log = LoggerFactory.getLogger(PythonRunner.class);

    private final File projectRoot;
    private final File projectFile;
    private final String executable;
    private Killer watchDog;
    public static final String[] startCommands = new String[] { "dotnet run" };

    public DotnetRunner(File projectRoot, File projectFile, String executable) {
        this.projectRoot = projectRoot;
        this.projectFile = projectFile;
        this.executable = executable;
    }

    @Override
    public File getInstanceDir() {
        return projectRoot;
    }

    @Override
    public void start(LineConsumer buildLogHandler, LineConsumer consoleLogHandler, Map<String, String> envVarsForApp, Waiter startupWaiter) throws ProjectCannotStartException {