22 "version" : " 2.0.0" ,
33 "tasks" : [
44 {
5- "label" : " build " ,
5+ "label" : " watch " ,
66 "command" : " dotnet" ,
77 "type" : " process" ,
88 "args" : [
9- " build" ,
9+ " watch" ,
10+ " run" ,
1011 " ${workspaceFolder}/Books.csproj" ,
1112 " /property:GenerateFullPaths=true" ,
1213 " /consoleloggerparameters:NoSummary"
1314 ],
1415 "problemMatcher" : " $msCompile"
1516 },
1617 {
17- "label" : " publish" ,
18+ "label" : " publish-release " ,
1819 "command" : " dotnet" ,
1920 "type" : " process" ,
2021 "args" : [
2122 " publish" ,
22- " ${workspaceFolder}/Books.csproj" ,
23+ " ${workspaceFolder}" ,
24+ " --configuration" ,
25+ " Release" ,
2326 " /property:GenerateFullPaths=true" ,
2427 " /consoleloggerparameters:NoSummary"
2528 ],
26- "problemMatcher" : " $msCompile"
29+ "problemMatcher" : " $msCompile" ,
30+ "dependsOn" : " clean"
2731 },
2832 {
29- "label" : " watch " ,
33+ "label" : " clean " ,
3034 "command" : " dotnet" ,
31- "type" : " process" ,
3235 "args" : [
33- " watch" ,
34- " run" ,
35- " ${workspaceFolder}/Books.csproj" ,
36+ " clean" ,
3637 " /property:GenerateFullPaths=true" ,
3738 " /consoleloggerparameters:NoSummary"
3839 ],
40+ "type" : " process" ,
3941 "problemMatcher" : " $msCompile"
4042 },
4143 {
42- "label" : " clean " ,
44+ "label" : " build " ,
4345 "command" : " dotnet" ,
46+ "args" : [
47+ " build" ,
48+ " /property:GenerateFullPaths=true" ,
49+ " /consoleloggerparameters:NoSummary"
50+ ],
4451 "type" : " process" ,
52+ "dependsOn" : " clean" ,
53+ "group" : {
54+ "kind" : " build" ,
55+ "isDefault" : true
56+ },
57+ "problemMatcher" : " $msCompile"
58+ },
59+ {
60+ "label" : " clean release" ,
61+ "command" : " dotnet" ,
4562 "args" : [
4663 " clean" ,
47- " ${workspaceFolder}" ,
64+ " --configuration" ,
65+ " Release" ,
4866 " /property:GenerateFullPaths=true" ,
4967 " /consoleloggerparameters:NoSummary"
5068 ],
69+ "type" : " process" ,
5170 "problemMatcher" : " $msCompile"
5271 },
5372 {
54- "label" : " publish-release " ,
73+ "label" : " publish" ,
5574 "command" : " dotnet" ,
56- "type" : " process" ,
5775 "args" : [
5876 " publish" ,
59- " ${workspaceFolder}" ,
6077 " --configuration" ,
6178 " Release" ,
6279 " /property:GenerateFullPaths=true" ,
6380 " /consoleloggerparameters:NoSummary"
6481 ],
65- "problemMatcher" : " $msCompile" ,
66- "dependsOn" : " clean"
82+ "type" : " process" ,
83+ "dependsOn" : " clean release" ,
84+ "problemMatcher" : " $msCompile"
85+ },
86+ {
87+ "type" : " func" ,
88+ "dependsOn" : " build" ,
89+ "options" : {
90+ "cwd" : " ${workspaceFolder}/bin/Debug/netcoreapp3.1"
91+ },
92+ "command" : " host start" ,
93+ "isBackground" : true ,
94+ "problemMatcher" : " $func-dotnet-watch"
6795 }
6896 ]
6997}
0 commit comments