Skip to content

Commit bc4c84b

Browse files
committed
Add more watch setting in dotnet-watch.json
1 parent 72ad631 commit bc4c84b

1 file changed

Lines changed: 31 additions & 12 deletions

File tree

dotnet-watch.json

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
11
{
2-
"watch": {
3-
"extensions": [
4-
".cs",
5-
".razor",
6-
".csproj"
7-
],
8-
"include": [
9-
"**/*.csproj"
10-
],
11-
"runOnChanges": {
12-
"**/*.csproj": "restart"
13-
}
2+
"watch": {
3+
"extensions": [
4+
".cs",
5+
".razor",
6+
".csproj",
7+
".cshtml",
8+
".json"
9+
],
10+
"include": [
11+
"**/*.cs",
12+
"**/*.razor",
13+
"**/*.cshtml",
14+
"**/*.csproj",
15+
"appsettings*.json",
16+
"Properties/launchSettings.json",
17+
"wwwroot/**/*"
18+
],
19+
"exclude": [
20+
"**/bin/**",
21+
"**/obj/**",
22+
".git/**"
23+
],
24+
"runOnChanges": {
25+
"**/*.cs": "restart",
26+
"**/*.razor": "restart",
27+
"**/*.cshtml": "restart",
28+
"**/*.csproj": "restart",
29+
"appsettings*.json": "restart",
30+
"Properties/launchSettings.json": "restart",
31+
"wwwroot/**/*": "restart"
1432
}
33+
}
1534
}

0 commit comments

Comments
 (0)