function generateDotnetTasks()

in src/commands/deploy/dotnet/setPreDeployConfigForDotnet.ts [76:110]


function generateDotnetTasks(subfolder: string): TaskDefinition[] {
    // always use posix for debug config because it's committed to source control and works on all OS's
    const cwd: string = path.posix.join('${workspaceFolder}', subfolder);

    const cleanTask: TaskDefinition = {
        label: cleanId,
        command: "dotnet",
        type: "process",
        args: [
            'clean',
            cwd,
            "/property:GenerateFullPaths=true",
            "/consoleloggerparameters:NoSummary"
        ],
        problemMatcher: "$msCompile"
    };

    const publishTask: TaskDefinition = {
        label: publishId,
        command: "dotnet",
        type: "process",
        args: [
            'publish',
            cwd,
            '--configuration',
            'Release',
            "/property:GenerateFullPaths=true",
            "/consoleloggerparameters:NoSummary"
        ],
        problemMatcher: "$msCompile",
        dependsOn: cleanId
    };

    return [cleanTask, publishTask];
}