Skip to content

Commit 9c9755a

Browse files
authored
Fix up the js frontend template (#13313)
There were some copy paste mistakes when making this template. There is no test option for this template. The .NET backend is named "server" not "ApiService".
1 parent 71ff6ef commit 9c9755a

File tree

3 files changed

+5
-26
lines changed

3 files changed

+5
-26
lines changed

src/Aspire.ProjectTemplates/templates/aspire-js-frontend-starter/.template.config/dotnetcli.host.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
"Framework": {
55
"longName": "framework"
66
},
7-
"XUnitVersion": {
8-
"shortName": "",
9-
"longName": "xunit-version",
10-
"defaultValue": "v2"
11-
},
127
"appHostHttpPort": {
138
"isHidden": true
149
},
@@ -33,10 +28,10 @@
3328
"appHostResourceHttpsPort": {
3429
"isHidden": true
3530
},
36-
"apiServiceHttpPort": {
31+
"serverHttpPort": {
3732
"isHidden": true
3833
},
39-
"apiServiceHttpsPort": {
34+
"serverHttpsPort": {
4035
"isHidden": true
4136
},
4237
"NoHttps": {
@@ -47,17 +42,12 @@
4742
"longName": "use-redis-cache",
4843
"shortName": ""
4944
},
50-
"TestFx": {
51-
"longName": "test-framework",
52-
"shortName": "t"
53-
},
5445
"LocalhostTld": {
5546
"longName": "localhost-tld",
5647
"shortName": ""
5748
}
5849
},
5950
"usageExamples": [
60-
"--use-redis-cache",
61-
"--test-framework MSTest"
51+
"--use-redis-cache"
6252
]
6353
}

src/Aspire.ProjectTemplates/templates/aspire-js-frontend-starter/.template.config/ide.host.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,11 @@
1010
}
1111
],
1212
"symbolInfo": [
13-
{
14-
"id": "XUnitVersion",
15-
"isVisible": true,
16-
"persistenceScope": "shared",
17-
"persistenceScopeName": "aspireTemplates"
18-
},
1913
{
2014
"id": "UseRedisCache",
2115
"isVisible": true,
2216
"persistenceScope": "templateGroup"
2317
},
24-
{
25-
"id": "TestFx",
26-
"isVisible": true,
27-
"persistenceScope": "templateGroup"
28-
},
2918
{
3019
"id": "LocalhostTld",
3120
"isVisible": true,
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@ApiService_HostAddress = http://localhost:5301
1+
@Server_HostAddress = http://localhost:5301
22

3-
GET {{ApiService_HostAddress}}/api/weatherforecast/
3+
GET {{Server_HostAddress}}/api/weatherforecast/
44
Accept: application/json
55

66
###

0 commit comments

Comments
 (0)