Skip to content
This repository has been archived by the owner on Sep 21, 2018. It is now read-only.

Commit

Permalink
Merge pull request #521 from aspnet/phenning/selfProfile
Browse files Browse the repository at this point in the history
Include self-host launch settings by default
  • Loading branch information
phenning committed Apr 25, 2016
2 parents b390b8d + b6f63da commit 37d8e90
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/BaseTemplates/EmptyWeb.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<ProjectItem ReplaceParameters="true" OpenInEditor="true">Startup.cs</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Project_Readme.html" OpenInWebBrowser="true">Project_Readme.html</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="web.config">web.config</ProjectItem>
<Folder Name="Properties" TargetFolderName="Properties">
<ProjectItem ReplaceParameters="true" TargetFileName="launchSettings.json">launchSettings.json</ProjectItem>
</Folder>
<Folder Name="wwwroot" TargetFolderName="wwwroot"/>
</Project>
</TemplateContent>
Expand Down
12 changes: 12 additions & 0 deletions src/BaseTemplates/EmptyWeb/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"profiles": {
"$safeprojectname$": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
3 changes: 3 additions & 0 deletions src/BaseTemplates/StarterWeb.vstemplate
Original file line number Diff line number Diff line change
Expand Up @@ -2408,6 +2408,9 @@
<ProjectItem ReplaceParameters="false" TargetFileName="rimraf.js">rimraf.js</ProjectItem>
</Folder>
</Folder>
<Folder Name="Properties" TargetFolderName="Properties">
<ProjectItem ReplaceParameters="true" TargetFileName="launchSettings.json">launchSettings.json</ProjectItem>
</Folder>
<Folder Name="Views" TargetFolderName="Views">
<ProjectItem ReplaceParameters="true" TargetFileName="_ViewImports.cshtml">_ViewImports.cshtml</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="_ViewStart.cshtml">_ViewStart.cshtml</ProjectItem>
Expand Down
12 changes: 12 additions & 0 deletions src/BaseTemplates/StarterWeb/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"profiles": {
"$safeprojectname$": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
10 changes: 9 additions & 1 deletion src/BaseTemplates/WebAPI/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables" : {
"ASPNET_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"$safeprojectname$": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000/api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions src/Rules/StarterWeb/WindowsAuth/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,15 @@
"iisSettings": {
"windowsAuthentication": true,
"anonymousAuthentication": false
},
"profiles": {
"$safeprojectname$": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
10 changes: 9 additions & 1 deletion src/Rules/WebAPI/WindowsAuth/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@
"launchBrowser": true,
"launchUrl": "api/values",
"environmentVariables" : {
"ASPNET_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"$safeprojectname$": {
"commandName" : "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000/api/values",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
Expand Down

0 comments on commit 37d8e90

Please sign in to comment.