-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e03bf4
commit bda750b
Showing
8 changed files
with
43 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"projects": [ "src", "test" ], | ||
"sdk": { | ||
"version": "1.0.0-beta6" | ||
} | ||
"projects": [ "src", "test" ] | ||
} |
20 changes: 20 additions & 0 deletions
20
aspnet/fundamentals/middleware/sample/src/MiddlewareSample/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.IO; | ||
using Microsoft.AspNetCore.Hosting; | ||
|
||
namespace MiddlewareSample | ||
{ | ||
public class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
var host = new WebHostBuilder() | ||
.UseKestrel() | ||
.UseContentRoot(Directory.GetCurrentDirectory()) | ||
.UseIISIntegration() | ||
.UseStartup<Startup>() | ||
.Build(); | ||
|
||
host.Run(); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
aspnet/fundamentals/middleware/sample/src/MiddlewareSample/RequestLoggerExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using Microsoft.AspNet.Builder; | ||
using Microsoft.AspNetCore.Builder; | ||
|
||
namespace MiddlewareSample | ||
{ | ||
|
5 changes: 2 additions & 3 deletions
5
aspnet/fundamentals/middleware/sample/src/MiddlewareSample/RequestLoggerMiddleware.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
aspnet/fundamentals/middleware/sample/src/MiddlewareSample/Startup.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
aspnet/fundamentals/middleware/sample/src/MiddlewareSample/hosting.ini
This file was deleted.
Oops, something went wrong.
38 changes: 13 additions & 25 deletions
38
aspnet/fundamentals/middleware/sample/src/MiddlewareSample/project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,22 @@ | ||
{ | ||
"webroot": "wwwroot", | ||
"version": "1.0.0-*", | ||
|
||
"dependencies": { | ||
"Microsoft.AspNet.Server.IIS": "1.0.0-beta6", | ||
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta6", | ||
"Microsoft.Framework.DependencyInjection": "1.0.0-beta6", | ||
"Microsoft.Framework.Logging": "1.0.0-beta6", | ||
"Microsoft.Framework.Logging.Console": "1.0.0-beta6" | ||
}, | ||
"Microsoft.NETCore.App": { | ||
"version": "1.0.0", | ||
"type": "platform" | ||
}, | ||
|
||
"commands": { | ||
"web": "Microsoft.AspNet.Hosting --config hosting.ini" | ||
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", | ||
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0", | ||
"Microsoft.Extensions.DependencyInjection": "1.0.0", | ||
"Microsoft.Extensions.Logging": "1.0.0", | ||
"Microsoft.Extensions.Logging.Console": "1.0.0" | ||
}, | ||
|
||
"frameworks": { | ||
"dnx451": { }, | ||
"dnxcore50": { } | ||
"netcoreapp1.0": {} | ||
}, | ||
|
||
"publishExclude": [ | ||
"node_modules", | ||
"bower_components", | ||
"**.xproj", | ||
"**.user", | ||
"**.vspscc" | ||
], | ||
"exclude": [ | ||
"wwwroot", | ||
"node_modules", | ||
"bower_components" | ||
] | ||
"buildOptions": { | ||
"emitEntryPoint": true | ||
} | ||
} |