ASP.NET Core and Docker

Download ASP.NET Core and Docker

Post on 12-Feb-2017

25 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

<p>Microsoft brand template</p> <p>ASP.NET Core Apps and DockerIan PhilpotSr. Technical Evangelist@tripdubroot</p> <p>8/17/2016 9:29 AM1 Microsoft Corporation. All rights reserved. </p> <p>The web stack is oldWeighed down by old unused codePrimarily in system.webDepending on machine level upgrades to .net was problematicPerformance was as fast it could be on existing platform</p> <p>Why Reinvent ASP.NET</p> <p>ArchitectureNot User Experience</p> <p>ASP.NET Core is a rethinking of the platform</p> <p>Complete re-write of the platformCross-platformOpen sourceSingle platform (MVC and WebAPI)WebForms is goneEverything is a dependency your app will be leanLow memory footprintMultiple Deployment</p> <p>What is ASP.NET?</p> <p>OverviewUnix/Linux/OSX.net coreMonoSelf-hosted dotnet cliWindows.net 4.6.net coreHosting IIS Native LoaderSelf-hosted dotnet cli</p> <p>What is ASP.NET?</p> <p>Three FrameworksFrameworks are about cross-platform.NET 4.6The .NET youve always known.Net CoreThe cross-platform .net framework in progressMonoThe existing open source cross-platform .net framework</p> <p>What is ASP.NET?</p> <p>CoreCLR is a subset of the .NET framework. Youll need to work around missing functionality outside of the ASP.NET Core.</p> <p>Everyting above .NET layer is a NuGet PackageFrameworks are bootstrapped and CLRMVC, StaticFiles, Logging, Configuration, Identity are just packagesEverything is optional</p> <p>Completely Composed</p> <p>Uses existing Web Development toolingNPM for tooling supportBower for client-side lib supportGrunt and Gulp for build automationNuGet for .Net PackagesNone of this is required</p> <p>Embraces Open Web Development</p> <p>Installing ASP.NET Core</p> <p>Demohttp://dot.net/Core DownloadVisual StudioProject Templates</p> <p> Microsoft Corporation. All rights reserved. 8/17/2016 9:29 AM10</p> <p>Hello World .NET Core</p> <p>Dotnet cliDotnet helpExtensibaleMkdir helloworldDotnet newProgram.csProject.jsonDotnet restoreDotnet build/runChange the hello world text</p> <p> Microsoft Corporation. All rights reserved. 8/17/2016 9:29 AM11</p> <p>Hello World VS Code </p> <p>Code.visualstudio.comDownload (cross-platform)InstallerCode .http://docs.asp.net/en/latest/client-side/yeoman.htmlNodenpm install -g yo bower grunt-cli gulpnpm install -g generator-aspnetmkdiryo aspnetcode .</p> <p> Microsoft Corporation. All rights reserved. 8/17/2016 9:29 AM12</p> <p>Hello World Visual Studio</p> <p>File New Project &gt; EmptyProgram.csStartup.csConfigureServicesConfigureCalled when requests come inMiddleware runs when requests come inFile New Project &gt; web applicationShow All files and review</p> <p> Microsoft Corporation. All rights reserved. 8/17/2016 9:29 AM13</p> <p>VSTS Build</p> <p>https://www.visualstudio.com/en-us/docs/build/apps/aspnet/aspnetcore-to-azure</p> <p> Microsoft Corporation. All rights reserved. 8/17/2016 9:30 AM14</p> <p>Dockerize</p> <p>-y for apt-get install</p> <p> Microsoft Corporation. All rights reserved. 8/17/2016 9:30 AM15</p> <p> Copyright Microsoft Corporation. All rights reserved. </p> <p>8/17/2016 9:29 AM16 Microsoft Corporation. All rights reserved. </p>