diff --git a/samples/HelloWorld/Program.cs b/samples/HelloWorld/Program.cs
index e693458753..eb57deedfc 100644
--- a/samples/HelloWorld/Program.cs
+++ b/samples/HelloWorld/Program.cs
@@ -1,20 +1,3 @@
-// Copyright (c) Microsoft Open Technologies, Inc.
-// All Rights Reserved
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
-// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
-// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
-// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
-// NON-INFRINGEMENT.
-// See the Apache 2 License for the specific language governing
-// permissions and limitations under the License.
-
using System;
using System.Net.WebSockets;
using System.Text;
diff --git a/samples/HelloWorld/Properties/launchSettings.json b/samples/HelloWorld/Properties/launchSettings.json
new file mode 100644
index 0000000000..6161971048
--- /dev/null
+++ b/samples/HelloWorld/Properties/launchSettings.json
@@ -0,0 +1,9 @@
+{
+ "profiles": {
+ "sample": {
+ "commandName": "sample",
+ "launchBrowser": true,
+ "launchUrl": "http://localhost:8080"
+ }
+ }
+}
\ No newline at end of file
diff --git a/samples/HelloWorld/project.json b/samples/HelloWorld/project.json
index a6fcd0a9bd..940c50ed47 100644
--- a/samples/HelloWorld/project.json
+++ b/samples/HelloWorld/project.json
@@ -2,6 +2,9 @@
"dependencies": {
"Microsoft.Net.Http.Server": "1.0.0-*"
},
+ "commands": {
+ "sample": "HelloWorld"
+ },
"frameworks": {
"dnx451": { },
"dnxcore50": {
diff --git a/samples/HotAddSample/Properties/launchSettings.json b/samples/HotAddSample/Properties/launchSettings.json
new file mode 100644
index 0000000000..62f539fadd
--- /dev/null
+++ b/samples/HotAddSample/Properties/launchSettings.json
@@ -0,0 +1,9 @@
+{
+ "profiles": {
+ "web": {
+ "commandName": "web",
+ "launchBrowser": true,
+ "launchUrl": "http://localhost:12345"
+ }
+ }
+}
\ No newline at end of file
diff --git a/samples/HotAddSample/Startup.cs b/samples/HotAddSample/Startup.cs
index 2092308438..e1424665a4 100644
--- a/samples/HotAddSample/Startup.cs
+++ b/samples/HotAddSample/Startup.cs
@@ -2,6 +2,7 @@
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Server.WebListener;
+using Microsoft.Framework.Logging;
namespace HotAddSample
{
@@ -10,8 +11,10 @@ namespace HotAddSample
// will be reset before the end of the request.
public class Startup
{
- public void Configure(IApplicationBuilder app)
+ public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory)
{
+ loggerfactory.AddConsole(LogLevel.Information);
+
var server = (ServerInformation)app.Server;
var listener = server.Listener;
listener.UrlPrefixes.Add("http://localhost:12346/pathBase/");
@@ -34,7 +37,7 @@ namespace HotAddSample
await context.Response.WriteAsync("Error adding: " + toAdd + "
");
await context.Response.WriteAsync(ex.ToString().Replace(Environment.NewLine, "
"));
}
- await context.Response.WriteAsync("
back");
+ await context.Response.WriteAsync("
back");
await context.Response.WriteAsync("