in src/commands/initProjectForVSCode/InitVSCodeStep/DotnetInitVSCodeStep.ts [96:164]
protected getTasks(language: ProjectLanguage): TaskDefinition[] {
const commonArgs: string[] = ['/property:GenerateFullPaths=true', '/consoleloggerparameters:NoSummary'];
const releaseArgs: string[] = ['--configuration', 'Release'];
const buildLabel = convertToFunctionsTaskLabel('build');
const cleanLabel = convertToFunctionsTaskLabel('clean');
const cleanReleaseLabel = convertToFunctionsTaskLabel('clean release');
return [
{
label: cleanLabel,
command: 'dotnet',
args: [
'clean',
...commonArgs
],
type: 'process',
problemMatcher: '$msCompile'
},
{
label: buildLabel,
command: 'dotnet',
args: [
'build',
...commonArgs
],
type: 'process',
dependsOn: cleanLabel,
group: {
kind: 'build',
isDefault: true
},
problemMatcher: '$msCompile'
},
{
label: cleanReleaseLabel,
command: 'dotnet',
args: [
'clean',
...releaseArgs,
...commonArgs
],
type: 'process',
problemMatcher: '$msCompile'
},
{
label: dotnetPublishTaskLabel,
command: 'dotnet',
args: [
'publish',
...releaseArgs,
...commonArgs
],
type: 'process',
dependsOn: cleanReleaseLabel,
problemMatcher: '$msCompile'
},
{
type: func,
dependsOn: buildLabel,
options: {
cwd: this._debugSubpath
},
command: hostStartCommand,
isBackground: true,
problemMatcher: getFuncWatchProblemMatcher(language)
}
];
}