.Net Core IIS, .., , .
.Net Core "dotnet run"
DotNet Run , . , , URL- , Type:
SET ASPNETCORE_URLS=http://example.com
, ,
SET ASPNETCORE_URLS=http://localhost:8080
SET ASPNETCORE_ENVIRONMENT=Development
, ,
dotnet run
, , cmd.exe dotnet Title. .
, Visual Studio "launchSettings.JSON". , , Kestrel Development, Kestrel Production, IIS , F5 IIS Express.
My LaunchSettings.json :
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:56545/",
"sslPort": 0
}
},
"profiles": {
"Kestrel Development": {
"executablePath": "dotnet run",
"commandName": "Project",
"commandLineArgs": "dotnet run",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "http://localhost:8080"
}
},
"Kestrel Production": {
"commandLineArgs": "dotnet run",
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_URLS": "http://localhost:8080",
"ASPNETCORE_ENVIRONMENT": "Production"
},
"executablePath": "dotnet"
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
- , F5 , . , F5, Visual Studio dotnet URLS, environmentVariables launchSettings.JSON.
, , , Kestrel Production, .
