Skip to content

Commit 9a74d3b

Browse files
Cleanup project template ide.host.json files (#42311)
- Make option values sticky in VS - Remove unused sections in ide.host.json Fixes #41638 #41637 #41631
1 parent 146f49f commit 9a74d3b

File tree

13 files changed

+49
-263
lines changed

13 files changed

+49
-263
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/.template.config/ide.host.json

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,13 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 600,
44
"icon": "ide/icon.png",
5-
"supportedAuthentications": [
6-
{
7-
"auth": "None",
8-
"authenticationType": "NoAuth",
9-
"allowUnsecured": true
10-
},
11-
{
12-
"auth": "Individual",
13-
"authenticationType": "IndividualAuth",
14-
"b2cAuthenticationOptions": "CloudExisting"
15-
},
16-
{
17-
"auth": "Individual",
18-
"authenticationType": "IndividualAuth",
19-
"b2cAuthenticationOptions": "Local"
20-
},
21-
{
22-
"auth": "SingleOrg",
23-
"authenticationType": "OrgAuth",
24-
"orgAuthenticationOptions": "SSO"
25-
},
26-
{
27-
"auth": "MultiOrg",
28-
"authenticationType": "OrgAuth",
29-
"orgAuthenticationOptions": "MultiOrg"
30-
},
31-
{
32-
"auth": "Windows",
33-
"authenticationType": "WindowsAuth"
34-
}
35-
],
36-
"ports": [
37-
{
38-
"name": "HttpPort",
39-
"useHttps": false
40-
},
41-
{
42-
"name": "HttpsPort",
43-
"useHttps": true
44-
}
45-
],
465
"symbolInfo": [
476
{
487
"id": "UseProgramMain",
49-
"isVisible": true
8+
"isVisible": true,
9+
"persistenceScope": "shared",
10+
"persistenceScopeName": "Microsoft"
5011
}
5112
],
5213
"disableHttpsSymbol": "NoHttps",
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,24 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 610,
44
"icon": "icon.png",
5-
"supportedAuthentications": [
6-
{
7-
"auth": "None",
8-
"authenticationType": "NoAuth",
9-
"allowUnsecured": true
10-
},
11-
{
12-
"auth": "Individual",
13-
"authenticationType": "IndividualAuth",
14-
"b2cAuthenticationOptions": "Local"
15-
},
16-
{
17-
"auth": "SingleOrg",
18-
"authenticationType": "OrgAuth",
19-
"orgAuthenticationOptions": "SSO",
20-
"provisionServerSymbol": "Hosted",
21-
"callbackPath": "/authentication/login-callback",
22-
"additionalReplyUriPorts": [ 5001 ]
23-
}
24-
],
25-
"ports": [
26-
{
27-
"name": "HttpPort",
28-
"useHttps": false
29-
},
30-
{
31-
"name": "HttpsPort",
32-
"useHttps": true
33-
}
34-
],
355
"disableHttpsSymbol": "NoHttps",
366
"symbolInfo": [
377
{
388
"id": "Hosted",
39-
"isVisible": "true"
9+
"isVisible": true,
10+
"persistenceScope": "templateGroup"
4011
},
4112
{
4213
"id": "PWA",
43-
"isVisible": "true"
14+
"isVisible": true,
15+
"persistenceScope": "templateGroup"
4416
},
4517
{
4618
"id": "UseProgramMain",
47-
"isVisible": true
19+
"isVisible": true,
20+
"persistenceScope": "shared",
21+
"persistenceScopeName": "Microsoft"
4822
}
4923
]
5024
}

src/ProjectTemplates/Web.ProjectTemplates/content/EmptyWeb-CSharp/.template.config/ide.host.json

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,14 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 100,
44
"icon": "ide/Empty.png",
55
"supportsDocker": true,
6-
"supportedAuthentications": [
7-
{
8-
"auth": "None",
9-
"authenticationType": "NoAuth",
10-
"allowUnsecured": true
11-
}
12-
],
13-
"ports": [
14-
{
15-
"name": "HttpPort",
16-
"useHttps": false
17-
},
18-
{
19-
"name": "HttpsPort",
20-
"useHttps": true
21-
}
22-
],
236
"symbolInfo": [
247
{
258
"id": "UseProgramMain",
26-
"isVisible": true
9+
"isVisible": true,
10+
"persistenceScope": "shared",
11+
"persistenceScopeName": "Microsoft"
2712
}
2813
],
2914
"disableHttpsSymbol": "NoHttps"
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 101,
44
"icon": "ide/Empty.png",
5-
"supportedAuthentications": [
6-
{
7-
"auth": "None",
8-
"authenticationType": "NoAuth",
9-
"allowUnsecured": true
10-
}
11-
],
125
"supportsDocker": true,
13-
"ports": [
14-
{
15-
"name": "HttpPort",
16-
"useHttps": false
17-
},
18-
{
19-
"name": "HttpsPort",
20-
"useHttps": true
21-
}
22-
],
236
"disableHttpsSymbol": "NoHttps"
247
}
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 500,
44
"icon": "ide/gRPC.png",
55
"supportsDocker": true,
66
"symbolInfo": [
77
{
88
"id": "UseProgramMain",
9-
"isVisible": true
9+
"isVisible": true,
10+
"persistenceScope": "shared",
11+
"persistenceScopeName": "Microsoft"
1012
}
1113
]
1214
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 700,
44
"icon": "ide/RazorClassLibrary.ico",
55
"symbolInfo": [
66
{
77
"id": "SupportPagesAndViews",
8-
"isVisible": "true"
8+
"isVisible": true,
9+
"persistenceScope": "templateGroup"
910
}
1011
]
1112
}

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/.template.config/ide.host.json

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,14 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 400,
44
"icon": "ide/WebApplication.png",
55
"supportsDocker": true,
6-
"supportedAuthentications": [
7-
{
8-
"auth": "None",
9-
"authenticationType": "NoAuth",
10-
"allowUnsecured": true
11-
},
12-
{
13-
"auth": "Individual",
14-
"authenticationType": "IndividualAuth",
15-
"b2cAuthenticationOptions": "CloudExisting"
16-
},
17-
{
18-
"auth": "Individual",
19-
"authenticationType": "IndividualAuth",
20-
"b2cAuthenticationOptions": "Local"
21-
},
22-
{
23-
"auth": "SingleOrg",
24-
"authenticationType": "OrgAuth",
25-
"orgAuthenticationOptions": "SSO"
26-
},
27-
{
28-
"auth": "MultiOrg",
29-
"authenticationType": "OrgAuth",
30-
"orgAuthenticationOptions": "MultiOrg"
31-
},
32-
{
33-
"auth": "Windows",
34-
"authenticationType": "WindowsAuth"
35-
}
36-
],
37-
"ports": [
38-
{
39-
"name": "HttpPort",
40-
"useHttps": false
41-
},
42-
{
43-
"name": "HttpsPort",
44-
"useHttps": true
45-
}
46-
],
476
"symbolInfo": [
487
{
498
"id": "UseProgramMain",
50-
"isVisible": true
9+
"isVisible": true,
10+
"persistenceScope": "shared",
11+
"persistenceScopeName": "Microsoft"
5112
}
5213
],
5314
"disableHttpsSymbol": "NoHttps"

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/.template.config/ide.host.json

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,14 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 410,
44
"icon": "ide/WebApplication.png",
55
"supportsDocker": true,
6-
"supportedAuthentications": [
7-
{
8-
"auth": "None",
9-
"authenticationType": "NoAuth",
10-
"allowUnsecured": true
11-
},
12-
{
13-
"auth": "Individual",
14-
"authenticationType": "IndividualAuth",
15-
"b2cAuthenticationOptions": "CloudExisting"
16-
},
17-
{
18-
"auth": "Individual",
19-
"authenticationType": "IndividualAuth",
20-
"b2cAuthenticationOptions": "Local"
21-
},
22-
{
23-
"auth": "SingleOrg",
24-
"authenticationType": "OrgAuth",
25-
"orgAuthenticationOptions": "SSO"
26-
},
27-
{
28-
"auth": "MultiOrg",
29-
"authenticationType": "OrgAuth",
30-
"orgAuthenticationOptions": "MultiOrg"
31-
},
32-
{
33-
"auth": "Windows",
34-
"authenticationType": "WindowsAuth"
35-
}
36-
],
37-
"ports": [
38-
{
39-
"name": "HttpPort",
40-
"useHttps": false
41-
},
42-
{
43-
"name": "HttpsPort",
44-
"useHttps": true
45-
}
46-
],
476
"symbolInfo": [
487
{
498
"id": "UseProgramMain",
50-
"isVisible": true
9+
"isVisible": true,
10+
"persistenceScope": "shared",
11+
"persistenceScopeName": "Microsoft"
5112
}
5213
],
5314
"disableHttpsSymbol": "NoHttps"

src/ProjectTemplates/Web.ProjectTemplates/content/WebApi-CSharp/.template.config/ide.host.json

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,8 @@
11
{
2-
"$schema": "http://json.schemastore.org/vs-2017.3.host",
2+
"$schema": "http://json.schemastore.org/ide.host",
33
"order": 200,
44
"icon": "ide/WebAPI.png",
55
"supportsDocker": true,
6-
"supportedAuthentications": [
7-
{
8-
"auth": "None",
9-
"authenticationType": "NoAuth",
10-
"allowUnsecured": true
11-
},
12-
{
13-
"auth": "Individual",
14-
"authenticationType": "IndividualAuth",
15-
"b2cAuthenticationOptions": "CloudExisting"
16-
},
17-
{
18-
"auth": "SingleOrg",
19-
"authenticationType": "OrgAuth",
20-
"orgAuthenticationOptions": "SSO"
21-
},
22-
{
23-
"auth": "Windows",
24-
"authenticationType": "WindowsAuth"
25-
}
26-
],
27-
"ports": [
28-
{
29-
"name": "HttpPort",
30-
"useHttps": false
31-
},
32-
{
33-
"name": "HttpsPort",
34-
"useHttps": true
35-
}
36-
],
376
"symbolInfo": [
387
{
398
"id": "DisableOpenAPI",
@@ -47,7 +16,8 @@
4716
},
4817
"invertBoolean": true,
4918
"isVisible": true,
50-
"defaultValue": true
19+
"defaultValue": "true",
20+
"persistenceScope": "templateGroup"
5121
},
5222
{
5323
"id": "UseMinimalAPIs",
@@ -57,11 +27,14 @@
5727
},
5828
"invertBoolean": true,
5929
"isVisible": true,
60-
"defaultValue": true
30+
"defaultValue": "true",
31+
"persistenceScope": "templateGroup"
6132
},
6233
{
6334
"id": "UseProgramMain",
64-
"isVisible": true
35+
"isVisible": true,
36+
"persistenceScope": "shared",
37+
"persistenceScopeName": "Microsoft"
6538
}
6639
],
6740
"disableHttpsSymbol": "NoHttps"

0 commit comments

Comments
 (0)