File tree Expand file tree Collapse file tree 6 files changed +100
-1
lines changed Expand file tree Collapse file tree 6 files changed +100
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // Use IntelliSense to find out which attributes exist for C# debugging
3
+ // Use hover for the description of the existing attributes
4
+ // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+ {
8
+ "name" : " .NET Core Launch (web)" ,
9
+ "type" : " coreclr" ,
10
+ "request" : " launch" ,
11
+ "preLaunchTask" : " build" ,
12
+ // If you have changed target frameworks, make sure to update the program path.
13
+ "program" : " ${workspaceRoot}/src/CookieSample/bin/Debug/netcoreapp2.0/CookieSample.dll" ,
14
+ "args" : [],
15
+ "cwd" : " ${workspaceRoot}/src/CookieSample" ,
16
+ "stopAtEntry" : false ,
17
+ "internalConsoleOptions" : " openOnSessionStart" ,
18
+ "launchBrowser" : {
19
+ "enabled" : true ,
20
+ "args" : " ${auto-detect-url}" ,
21
+ "windows" : {
22
+ "command" : " cmd.exe" ,
23
+ "args" : " /C start ${auto-detect-url}"
24
+ },
25
+ "osx" : {
26
+ "command" : " open"
27
+ },
28
+ "linux" : {
29
+ "command" : " xdg-open"
30
+ }
31
+ },
32
+ "env" : {
33
+ "ASPNETCORE_ENVIRONMENT" : " Development"
34
+ },
35
+ "sourceFileMap" : {
36
+ "/Views" : " ${workspaceRoot}/Views"
37
+ }
38
+ },
39
+ {
40
+ "name" : " .NET Core Attach" ,
41
+ "type" : " coreclr" ,
42
+ "request" : " attach" ,
43
+ "processId" : " ${command:pickProcess}"
44
+ }
45
+ ]
46
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.1.0" ,
3
+ "command" : " dotnet" ,
4
+ "isShellCommand" : true ,
5
+ "args" : [],
6
+ "tasks" : [
7
+ {
8
+ "taskName" : " build" ,
9
+ "args" : [
10
+ " ${workspaceRoot}/src/CookieSample/CookieSample.csproj"
11
+ ],
12
+ "isBuildCommand" : true ,
13
+ "problemMatcher" : " $msCompile"
14
+ }
15
+ ]
16
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <configuration >
3
+ <packageSources >
4
+ <clear />
5
+ <add key =" AspNetCore" value =" https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
6
+ <add key =" AspNetCoreTools" value =" https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
7
+ <add key =" NuGet" value =" https://api.nuget.org/v3/index.json" />
8
+ </packageSources >
9
+ </configuration >
Original file line number Diff line number Diff line change
1
+ {
2
+ "Default" : {
3
+ "rules" : [
4
+ " DefaultCompositeRule"
5
+ ]
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ FROM microsoft/dotnet:latest
2
+ COPY . /app
3
+ WORKDIR /app
4
+
5
+ RUN dotnet restore
6
+ RUN dotnet build
7
+
8
+ EXPOSE 4000/tcp
9
+ ENV ASPNETCORE_URLS http://*:4000
10
+ ENV ASPNETCORE_ENVIRONMENT Production
11
+
12
+ ENTRYPOINT dotnet run
Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . IO ;
4
4
using System . Linq ;
5
+ using System . Net ;
5
6
using System . Threading . Tasks ;
6
7
using Microsoft . AspNetCore ;
7
8
using Microsoft . AspNetCore . Hosting ;
@@ -18,7 +19,15 @@ public static void Main(string[] args)
18
19
}
19
20
20
21
public static IWebHost BuildWebHost ( string [ ] args ) =>
21
- WebHost . CreateDefaultBuilder ( args )
22
+ new WebHostBuilder ( )
23
+ . UseKestrel ( options=> {
24
+ options . Listen ( IPAddress . Parse ( "0.0.0.0" ) , 4000 ) ;
25
+ } )
26
+ . UseContentRoot ( Directory . GetCurrentDirectory ( ) )
27
+ . ConfigureLogging ( ( hostingContext , logging ) =>
28
+ {
29
+ logging . AddConsole ( ) ;
30
+ } )
22
31
. UseStartup < Startup > ( )
23
32
. Build ( ) ;
24
33
}
You can’t perform that action at this time.
0 commit comments