SlideShare a Scribd company logo
1 of 21
asp.net vNext 
The future of the Server 
MAXIME LEMAITRE – 11/12/2014
Agenda 
• Before to start 
• Let’s 
– create a new MVC project.. 
– open the project file … 
– add a reference … 
– add a nuget package … 
– build a class library… 
– build & publish the project… 
– edit source code… 
– add some configuration … 
– add a web api … 
– play with bower/gulp/grunt … 
• asp.net core & project K 
• Questions
Based on latest asp.net 
vNext version (Nov. 2014)
Let’s create a new MVC project … 
What’s different ? 
• New sections 
– wwwroot 
– Dependencies 
• New Solution structure 
– Src, artefacts, … 
• New files 
– project.json 
– global.json 
– (package.json) 
– (grunfile.js) 
– (bower.json) 
• Missing files/folders 
– MVC Content/Scripts/AppStart 
– Web.config 
– global.asax
Let’s open the project file … 
What’s different ? 
• K Project file is smaller 
– Where are references ? 
– Where are source code files ? 
– Where are X & Y ? 
• A new project.json file 
– Project settings 
– Dependencies & Frameworks 
– Commands 
– (but still no files)
Let’s add a reference … 
What’s different ? 
• No more direct dependencies 
• No more GAC dependencies 
• NuGet everything, even the 
runtime itself. 
Dependencies are now defined in project.json
Let’s add a nuget package …
Let’s add a nuget package … 
• Brand New UI 
• Version Selection 
• Combined Installed/Online/Updates 
Workflows 
• Version Consolidation 
• Operation Previews 
• Installation Options (Dep behavior & 
conflict action) 
• Infinite Scrolling 
• …
Let’s build a class library … 
• New project type 
• Nuget packages “All the way” 
• Cross compiling (net40, net45, 
aspnet, aspnetcore, …) 
• Can be built via command line 
or VS
Let’s build & publish the project … 
• What about the deployable package ? 
– the assemblies never exist on the disk 
– the compiler do all the work in memory 
Tip : > SET KRE_TRACE=1 
• Same experience 
between command 
prompt and VS 
• Cross-platform
Let’s edit source code … 
No-compile 
developer 
experience ! 
vNext uses the Rosyln compiler to compile code dynamically. You will be able to edit a code file, refresh 
the browser, and see the changes without rebuilding the project.
Let’s add some configuration … 
• No more .config file ! But a new lightweight model 
– Configuartion that works everywhere (Core & Full CLR) 
– Configuration can be instantiated and initialized by the 
application 
Project.json 
Config.json Config.xml 
Config.ini 
Supports also command 
line arguments & 
environement variables ! 
Tip : ConfigR may help… Program.cs
Let’s add a web api … 
• MVC, Web API, and Web Pages will 
be merged into one framework, 
called MVC 6 
– removes a lot of overlap between 
the existing MVC and Web API 
frameworks 
– uses a common set of abstractions 
for routing, action selection, filters, 
model binding, and so on 
– use the framework to create both UI 
(HTML) and web APIs. 
• No dependency to System.Web 
– leaner framework, with faster 
startup time and lower memory 
consumption
Let’s play with bower/gulp/grunt … 
• VS 2015 Preview has built-in support for popular 
package managers 
– Bower. Described as a “package manager for the 
web,” Bower lets you install and restore client-side 
packages, include JavaScript and CSS libraries. 
– Grunt and Gulp. Grunt and Gulp are JavaScript-based 
task runners. 
– npm : npm is a package manager that was originally 
created for Node.js. Bower, Grunt, and Gulp all use 
npm. 
• wwwroot folder 
– All of the static files (generated or not) in your 
project go into this folder
Microsoft’s Special K 
• KRE – K Runtime Environment is the 
code required to bootstrap and run an 
ASP.NET vNext application. This 
includes things like the compilation 
system, SDK tools, and the native CLR 
hosts. 
• KVM – K Version Manager is for 
updating and installing different 
versions of KRE. KVM is also used to 
set default KRE version. 
• KPM – K Package Manager manages 
packages needed by applications to 
run. Packages in this context are 
NuGet packages. 
Read more here
Levels of abstractions 
• The host application – in the past this 
was ALWAYS Microsoft Internet 
Information Server (IIS). This could be 
IIS, IIS with Helios, Katana, or some 
other OWIN capable host. 
• The CLR framework – previously you 
would choose which version of the 
Microsoft.NET framework you wanted 
to use. This may be .NET 4.5.2, K 
runtime, or Mono. 
• The Application Host – previously, this 
would be the W3C executable. Now, 
this can be a host for the Visual Studio 
designer, or the new 
Microsoft.Host.Runtime. 
• Your Application – Your application 
now loads the former ASP.NET 
frameworks (MVC, WebAPI, or SignalR) 
as part of its dependencies. 
Read more here
Asp.net vNext Features 
• New flexible and cross-platform runtime 
• New modular HTTP request pipeline 
• Cloud-ready environment configuration 
• Unified programming model that combines MVC, Web API, 
and Web Pages 
• Ability to see changes without re-building the project 
• Side-by-side versioning of the .NET Framework 
• Ability to self-host or host on IIS 
• New tools in Visual Studio 2015 
• Open source in GitHub 
Read more here
Questions
Continue reading … 
• http://www.asp.net/vnext/overview/aspnet-vnext 
• http://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/011 
• http://www.tugberkugurlu.com/archive/exciting-things-about-asp-net-vnext-series- 
the-ultimate-guide 
• https://github.com/aspnet/Home/wiki 
• https://github.com/aspnet/Home/wiki/KRuntime-structure 
• http://www.hanselman.com/blog/IntroducingASPNETVNext.aspx 
• http://stackoverflow.com/questions/25431750/asp-net-vnext-is-host-agnostic-what- 
does-it-deeply-mean 
• http://channel9.msdn.com/Events/dotnetConf/2014/ASP-NET-vNext-101 
• http://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/023 
• http://jeremydmiller.com/2014/12/02/some-thoughts-on-the-new-net/? 
utm_source=twitterfeed&utm_medium=twitter 
• http://gunnarpeipman.com/aspnet/ 
• http://www.omnisharp.net/
About Us 
• Betclic Everest Group, one of the world leaders in online 
gaming, has a unique portfolio comprising various 
complementary international brands: Betclic, Everest 
Poker/Casino, Bet-at-home, Expekt, Imperial Casino, Monte- 
Carlo Casino… 
• Through our brands, Betclic Everest Group places expertise, 
technological know-how and security at the heart of our 
strategy to deliver an on-line gaming offer attuned to the 
passion of our players. We want our brands to be easy to use 
for every gamer around the world. We’re building our 
company to make that happen. 
• Active in 100 countries with more than 12 million customers 
worldwide, the Group is committed to promoting secure and 
responsible gaming and is a member of several international 
professional associations including the EGBA (European 
Gaming and Betting Association) and the ESSA (European 
Sports Security Association).
We want our Sports betting, Poker, Horse racing and 
Casino & Games brands to be easy to use for every 
gamer around the world. Code with us to make that 
happen. 
Look at all the challenges we offer HERE 
Check our Employer Page 
Follow us on LinkedIn 
WE’RE HIRING !

More Related Content

What's hot

Package Management on Windows with Chocolatey
Package Management on Windows with ChocolateyPackage Management on Windows with Chocolatey
Package Management on Windows with Chocolatey
Puppet
 

What's hot (20)

5 Popular Choices for NoSQL on a Microsoft Platform - All Things Open - Octob...
5 Popular Choices for NoSQL on a Microsoft Platform - All Things Open - Octob...5 Popular Choices for NoSQL on a Microsoft Platform - All Things Open - Octob...
5 Popular Choices for NoSQL on a Microsoft Platform - All Things Open - Octob...
 
Warden @ Meet magento Romania 2021
Warden @ Meet magento Romania 2021Warden @ Meet magento Romania 2021
Warden @ Meet magento Romania 2021
 
How adding a further tool can be a good thing
How adding a further tool can be a good thingHow adding a further tool can be a good thing
How adding a further tool can be a good thing
 
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source ToolsTYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkins
 
Dot Net Core
Dot Net CoreDot Net Core
Dot Net Core
 
Continuous Delivery with Jenkins
Continuous Delivery with JenkinsContinuous Delivery with Jenkins
Continuous Delivery with Jenkins
 
Untangling - fall2017 - week 8
Untangling - fall2017 - week 8Untangling - fall2017 - week 8
Untangling - fall2017 - week 8
 
Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansible
 
Nürnberg WooCommerce Talk - 11/24/16
Nürnberg WooCommerce Talk - 11/24/16Nürnberg WooCommerce Talk - 11/24/16
Nürnberg WooCommerce Talk - 11/24/16
 
Working in harmony
Working in harmonyWorking in harmony
Working in harmony
 
How to make your Webpack builds 10x faster
How to make your Webpack builds 10x fasterHow to make your Webpack builds 10x faster
How to make your Webpack builds 10x faster
 
Afrimadoni the power of docker
Afrimadoni   the power of dockerAfrimadoni   the power of docker
Afrimadoni the power of docker
 
Zend Framwork presentation
Zend Framwork presentationZend Framwork presentation
Zend Framwork presentation
 
PHP Indonesia - Nodejs Web Development
PHP Indonesia - Nodejs Web DevelopmentPHP Indonesia - Nodejs Web Development
PHP Indonesia - Nodejs Web Development
 
CubeJS: eBay’s Node.js Adoption Journey
CubeJS: eBay’s Node.js Adoption JourneyCubeJS: eBay’s Node.js Adoption Journey
CubeJS: eBay’s Node.js Adoption Journey
 
Introduction to apache maven
Introduction to apache mavenIntroduction to apache maven
Introduction to apache maven
 
Package Management on Windows with Chocolatey
Package Management on Windows with ChocolateyPackage Management on Windows with Chocolatey
Package Management on Windows with Chocolatey
 
The New Frontend Toolchain
The New Frontend ToolchainThe New Frontend Toolchain
The New Frontend Toolchain
 
WordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and VagrantWordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and Vagrant
 

Viewers also liked

Viewers also liked (17)

Mini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation DemystifiedMini-training: Personalization & Recommendation Demystified
Mini-training: Personalization & Recommendation Demystified
 
Mini training- Scenario Driven Design
Mini training- Scenario Driven DesignMini training- Scenario Driven Design
Mini training- Scenario Driven Design
 
Mini-Training: Docker
Mini-Training: DockerMini-Training: Docker
Mini-Training: Docker
 
Training - What is Performance ?
Training  - What is Performance ?Training  - What is Performance ?
Training - What is Performance ?
 
Mini-Training: Mobile UX Trends
Mini-Training: Mobile UX TrendsMini-Training: Mobile UX Trends
Mini-Training: Mobile UX Trends
 
Email Management in Outlook
Email Management in OutlookEmail Management in Outlook
Email Management in Outlook
 
Training – Going Async
Training – Going AsyncTraining – Going Async
Training – Going Async
 
Mini-Training: NDepend
Mini-Training: NDependMini-Training: NDepend
Mini-Training: NDepend
 
Lean for Business
Lean for BusinessLean for Business
Lean for Business
 
Akka.Net
Akka.NetAkka.Net
Akka.Net
 
Training: MVVM Pattern
Training: MVVM PatternTraining: MVVM Pattern
Training: MVVM Pattern
 
Mini training - Reactive Extensions (Rx)
Mini training - Reactive Extensions (Rx)Mini training - Reactive Extensions (Rx)
Mini training - Reactive Extensions (Rx)
 
Mini training - Introduction to Microsoft Azure Storage
Mini training - Introduction to Microsoft Azure StorageMini training - Introduction to Microsoft Azure Storage
Mini training - Introduction to Microsoft Azure Storage
 
Mini-Training: SSO with Windows Identity Foundation
Mini-Training: SSO with Windows Identity FoundationMini-Training: SSO with Windows Identity Foundation
Mini-Training: SSO with Windows Identity Foundation
 
Mini training - Moving to xUnit.net
Mini training - Moving to xUnit.netMini training - Moving to xUnit.net
Mini training - Moving to xUnit.net
 
Management 3.0 Workout
Management 3.0 WorkoutManagement 3.0 Workout
Management 3.0 Workout
 
Mini Training Flyway
Mini Training FlywayMini Training Flyway
Mini Training Flyway
 

Similar to Short-Training asp.net vNext

Ankit Chohan - Java
Ankit Chohan - JavaAnkit Chohan - Java
Ankit Chohan - Java
Ankit Chohan
 

Similar to Short-Training asp.net vNext (20)

Introduction to ASP.NET 5
Introduction to ASP.NET 5Introduction to ASP.NET 5
Introduction to ASP.NET 5
 
Get acquainted with the new ASP.Net 5
Get acquainted with the new ASP.Net 5Get acquainted with the new ASP.Net 5
Get acquainted with the new ASP.Net 5
 
The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)
 
ASP.NET 5
ASP.NET 5ASP.NET 5
ASP.NET 5
 
Asp.Net Core MVC , Razor page , Entity Framework Core
Asp.Net Core MVC , Razor page , Entity Framework CoreAsp.Net Core MVC , Razor page , Entity Framework Core
Asp.Net Core MVC , Razor page , Entity Framework Core
 
Introduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azureIntroduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azure
 
ASP.NET vNext
ASP.NET vNextASP.NET vNext
ASP.NET vNext
 
Modern Web-site Development Pipeline
Modern Web-site Development PipelineModern Web-site Development Pipeline
Modern Web-site Development Pipeline
 
Angular on ASP.NET MVC 6
Angular on ASP.NET MVC 6Angular on ASP.NET MVC 6
Angular on ASP.NET MVC 6
 
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
Introducing ASP.NET vNext - A tour of the new ASP.NET platformIntroducing ASP.NET vNext - A tour of the new ASP.NET platform
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
 
Fluo CICD OpenStack Summit
Fluo CICD OpenStack SummitFluo CICD OpenStack Summit
Fluo CICD OpenStack Summit
 
Extending Build to the Client: A Maven User's Guide to Grunt.js
Extending Build to the Client: A Maven User's Guide to Grunt.jsExtending Build to the Client: A Maven User's Guide to Grunt.js
Extending Build to the Client: A Maven User's Guide to Grunt.js
 
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
Introducing ASP.NET vNext – The Future of .NET on the Server | FalafelCON 2014
 
Contentful with Netgen Layouts workshop
Contentful with Netgen Layouts workshopContentful with Netgen Layouts workshop
Contentful with Netgen Layouts workshop
 
OpenStack Summit 2013 Hong Kong - OpenStack and Windows
OpenStack Summit 2013 Hong Kong - OpenStack and WindowsOpenStack Summit 2013 Hong Kong - OpenStack and Windows
OpenStack Summit 2013 Hong Kong - OpenStack and Windows
 
Deploy an Asp.Net Core App on Azure
Deploy an Asp.Net Core App on AzureDeploy an Asp.Net Core App on Azure
Deploy an Asp.Net Core App on Azure
 
Ankit Chohan - Java
Ankit Chohan - JavaAnkit Chohan - Java
Ankit Chohan - Java
 
White Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and PrimeWhite Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and Prime
 
Leonid Vasilyev "Building, deploying and running production code at Dropbox"
Leonid Vasilyev  "Building, deploying and running production code at Dropbox"Leonid Vasilyev  "Building, deploying and running production code at Dropbox"
Leonid Vasilyev "Building, deploying and running production code at Dropbox"
 
ASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesASP .Net Core SPA Templates
ASP .Net Core SPA Templates
 

More from Betclic Everest Group Tech Team

More from Betclic Everest Group Tech Team (11)

AngularJS Best Practices
AngularJS Best PracticesAngularJS Best Practices
AngularJS Best Practices
 
Mini-Training: Roslyn
Mini-Training: RoslynMini-Training: Roslyn
Mini-Training: Roslyn
 
Mini-Training: Netflix Simian Army
Mini-Training: Netflix Simian ArmyMini-Training: Netflix Simian Army
Mini-Training: Netflix Simian Army
 
WCF Configuration - The basics
WCF Configuration - The basicsWCF Configuration - The basics
WCF Configuration - The basics
 
Mini-Training: Javascript Patterns
Mini-Training: Javascript PatternsMini-Training: Javascript Patterns
Mini-Training: Javascript Patterns
 
The Ten Commandments of Egoless Programming
The Ten Commandments of Egoless ProgrammingThe Ten Commandments of Egoless Programming
The Ten Commandments of Egoless Programming
 
Productivity Tips for the Busy Tech Professional
Productivity Tips for the Busy Tech ProfessionalProductivity Tips for the Busy Tech Professional
Productivity Tips for the Busy Tech Professional
 
Design Patterns
Design PatternsDesign Patterns
Design Patterns
 
Mini-Training: TypeScript
Mini-Training: TypeScriptMini-Training: TypeScript
Mini-Training: TypeScript
 
Betclic Winter Team Building 2013
Betclic Winter Team Building 2013Betclic Winter Team Building 2013
Betclic Winter Team Building 2013
 
Mini-Training: To cache or not to cache
Mini-Training: To cache or not to cacheMini-Training: To cache or not to cache
Mini-Training: To cache or not to cache
 

Recently uploaded

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 

Recently uploaded (20)

%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 

Short-Training asp.net vNext

  • 1. asp.net vNext The future of the Server MAXIME LEMAITRE – 11/12/2014
  • 2. Agenda • Before to start • Let’s – create a new MVC project.. – open the project file … – add a reference … – add a nuget package … – build a class library… – build & publish the project… – edit source code… – add some configuration … – add a web api … – play with bower/gulp/grunt … • asp.net core & project K • Questions
  • 3. Based on latest asp.net vNext version (Nov. 2014)
  • 4. Let’s create a new MVC project … What’s different ? • New sections – wwwroot – Dependencies • New Solution structure – Src, artefacts, … • New files – project.json – global.json – (package.json) – (grunfile.js) – (bower.json) • Missing files/folders – MVC Content/Scripts/AppStart – Web.config – global.asax
  • 5. Let’s open the project file … What’s different ? • K Project file is smaller – Where are references ? – Where are source code files ? – Where are X & Y ? • A new project.json file – Project settings – Dependencies & Frameworks – Commands – (but still no files)
  • 6. Let’s add a reference … What’s different ? • No more direct dependencies • No more GAC dependencies • NuGet everything, even the runtime itself. Dependencies are now defined in project.json
  • 7. Let’s add a nuget package …
  • 8. Let’s add a nuget package … • Brand New UI • Version Selection • Combined Installed/Online/Updates Workflows • Version Consolidation • Operation Previews • Installation Options (Dep behavior & conflict action) • Infinite Scrolling • …
  • 9. Let’s build a class library … • New project type • Nuget packages “All the way” • Cross compiling (net40, net45, aspnet, aspnetcore, …) • Can be built via command line or VS
  • 10. Let’s build & publish the project … • What about the deployable package ? – the assemblies never exist on the disk – the compiler do all the work in memory Tip : > SET KRE_TRACE=1 • Same experience between command prompt and VS • Cross-platform
  • 11. Let’s edit source code … No-compile developer experience ! vNext uses the Rosyln compiler to compile code dynamically. You will be able to edit a code file, refresh the browser, and see the changes without rebuilding the project.
  • 12. Let’s add some configuration … • No more .config file ! But a new lightweight model – Configuartion that works everywhere (Core & Full CLR) – Configuration can be instantiated and initialized by the application Project.json Config.json Config.xml Config.ini Supports also command line arguments & environement variables ! Tip : ConfigR may help… Program.cs
  • 13. Let’s add a web api … • MVC, Web API, and Web Pages will be merged into one framework, called MVC 6 – removes a lot of overlap between the existing MVC and Web API frameworks – uses a common set of abstractions for routing, action selection, filters, model binding, and so on – use the framework to create both UI (HTML) and web APIs. • No dependency to System.Web – leaner framework, with faster startup time and lower memory consumption
  • 14. Let’s play with bower/gulp/grunt … • VS 2015 Preview has built-in support for popular package managers – Bower. Described as a “package manager for the web,” Bower lets you install and restore client-side packages, include JavaScript and CSS libraries. – Grunt and Gulp. Grunt and Gulp are JavaScript-based task runners. – npm : npm is a package manager that was originally created for Node.js. Bower, Grunt, and Gulp all use npm. • wwwroot folder – All of the static files (generated or not) in your project go into this folder
  • 15. Microsoft’s Special K • KRE – K Runtime Environment is the code required to bootstrap and run an ASP.NET vNext application. This includes things like the compilation system, SDK tools, and the native CLR hosts. • KVM – K Version Manager is for updating and installing different versions of KRE. KVM is also used to set default KRE version. • KPM – K Package Manager manages packages needed by applications to run. Packages in this context are NuGet packages. Read more here
  • 16. Levels of abstractions • The host application – in the past this was ALWAYS Microsoft Internet Information Server (IIS). This could be IIS, IIS with Helios, Katana, or some other OWIN capable host. • The CLR framework – previously you would choose which version of the Microsoft.NET framework you wanted to use. This may be .NET 4.5.2, K runtime, or Mono. • The Application Host – previously, this would be the W3C executable. Now, this can be a host for the Visual Studio designer, or the new Microsoft.Host.Runtime. • Your Application – Your application now loads the former ASP.NET frameworks (MVC, WebAPI, or SignalR) as part of its dependencies. Read more here
  • 17. Asp.net vNext Features • New flexible and cross-platform runtime • New modular HTTP request pipeline • Cloud-ready environment configuration • Unified programming model that combines MVC, Web API, and Web Pages • Ability to see changes without re-building the project • Side-by-side versioning of the .NET Framework • Ability to self-host or host on IIS • New tools in Visual Studio 2015 • Open source in GitHub Read more here
  • 19. Continue reading … • http://www.asp.net/vnext/overview/aspnet-vnext • http://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/011 • http://www.tugberkugurlu.com/archive/exciting-things-about-asp-net-vnext-series- the-ultimate-guide • https://github.com/aspnet/Home/wiki • https://github.com/aspnet/Home/wiki/KRuntime-structure • http://www.hanselman.com/blog/IntroducingASPNETVNext.aspx • http://stackoverflow.com/questions/25431750/asp-net-vnext-is-host-agnostic-what- does-it-deeply-mean • http://channel9.msdn.com/Events/dotnetConf/2014/ASP-NET-vNext-101 • http://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/023 • http://jeremydmiller.com/2014/12/02/some-thoughts-on-the-new-net/? utm_source=twitterfeed&utm_medium=twitter • http://gunnarpeipman.com/aspnet/ • http://www.omnisharp.net/
  • 20. About Us • Betclic Everest Group, one of the world leaders in online gaming, has a unique portfolio comprising various complementary international brands: Betclic, Everest Poker/Casino, Bet-at-home, Expekt, Imperial Casino, Monte- Carlo Casino… • Through our brands, Betclic Everest Group places expertise, technological know-how and security at the heart of our strategy to deliver an on-line gaming offer attuned to the passion of our players. We want our brands to be easy to use for every gamer around the world. We’re building our company to make that happen. • Active in 100 countries with more than 12 million customers worldwide, the Group is committed to promoting secure and responsible gaming and is a member of several international professional associations including the EGBA (European Gaming and Betting Association) and the ESSA (European Sports Security Association).
  • 21. We want our Sports betting, Poker, Horse racing and Casino & Games brands to be easy to use for every gamer around the world. Code with us to make that happen. Look at all the challenges we offer HERE Check our Employer Page Follow us on LinkedIn WE’RE HIRING !