Skip to content

Commit d55cbbf

Browse files
authored
Remove IIS settings from Core API template. (#48821)
* Remove IIS settings from Core API template.
1 parent 6b0d5fe commit d55cbbf

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
22
"$schema": "http://json.schemastore.org/launchsettings.json",
3-
//#if (!NativeAot)
4-
"iisSettings": {
5-
"windowsAuthentication": false,
6-
"anonymousAuthentication": true,
7-
"iisExpress": {
8-
"applicationUrl": "http://localhost:8080",
9-
"sslPort": 0
10-
}
11-
},
12-
//#endif
133
"profiles": {
144
"http": {
155
"commandName": "Project",
@@ -20,18 +10,6 @@
2010
"environmentVariables": {
2111
"ASPNETCORE_ENVIRONMENT": "Development"
2212
}
23-
//#if (!NativeAot)
24-
},
25-
"IIS Express": {
26-
"commandName": "IISExpress",
27-
"launchBrowser": true,
28-
"launchUrl": "todos",
29-
"environmentVariables": {
30-
"ASPNETCORE_ENVIRONMENT": "Development"
31-
}
32-
}
33-
//#else
3413
}
35-
//#endif
3614
}
3715
}

src/ProjectTemplates/test/Templates.Tests/ApiTemplateTest.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ private async Task ApiTemplateCore(string languageOverride, string[] args = null
6868

6969
await project.RunDotNetNewAsync("api", args: args, language: languageOverride);
7070

71-
var expectedLaunchProfileNames = nativeAot
72-
? new[] { "http" }
73-
: new[] { "http", "IIS Express" };
71+
var expectedLaunchProfileNames = new[] { "http" };
7472
await project.VerifyLaunchSettings(expectedLaunchProfileNames);
7573

7674
if (nativeAot)

0 commit comments

Comments
 (0)