Skip to content

Commit

Permalink
⬆️ Update starter web template for RC2. Closes OmniSharp#2
Browse files Browse the repository at this point in the history
This brings most recent changes from aspnet/Templates

Tested and found breaking on 1.0.0-preview1-002700
  • Loading branch information
peterblazejewicz committed May 14, 2016
1 parent 1a5da21 commit cbe3185
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 deletions.
15 changes: 15 additions & 0 deletions templates/projects/webbasic/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:24454/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"<%= namespace %>": {
"commandName": "Project",
"launchBrowser": true,
Expand Down
6 changes: 1 addition & 5 deletions templates/projects/webbasic/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ public Startup(IHostingEnvironment env)
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile(source =>
{
source.Path = "appsettings.json";
source.ReloadOnChange = true;
})
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
.AddEnvironmentVariables();
Configuration = builder.Build();
Expand Down
40 changes: 18 additions & 22 deletions templates/projects/webbasic/project.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-24008",
"version": "1.0.0-rc2-3002611",
"type": "platform"
},
"dotnet-razor-tooling": {
"version": "1.0.0-rc2-20581",
"Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-20801",
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-20801",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-rc2-20801",
"type": "build"
},
"Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-20581",
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-20581",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-20581",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-20581",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-20581",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-20581",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-20581",
"Microsoft.Extensions.Logging": "1.0.0-rc2-20581",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-20581",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-20581",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc2-20581"
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-20801",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-20801",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-20801",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-20801",
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-20801",
"Microsoft.Extensions.Logging": "1.0.0-rc2-20801",
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-20801",
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-20801",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc2-20801"
},

"tools": {
"dotnet-razor-tooling": {
"version": "1.0.0-rc2-20581",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-rc2-20801",
"imports": "portable-net45+win8+dnxcore50"
},
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-rc2-20581",
"version": "1.0.0-rc2-20801",
"imports": "portable-net45+win8+dnxcore50"
}
},
Expand All @@ -42,7 +42,7 @@
}
},

"compilationOptions": {
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
Expand All @@ -57,10 +57,6 @@
"Views",
"appsettings.json",
"web.config"
],

"exclude": [
"node_modules"
]
},

Expand Down

0 comments on commit cbe3185

Please sign in to comment.