Presented at OSCON 2015
This introduction to Asp.net vNext will be a presentation and quick tutorial to the Microsoft open source community. The presentation will introduce the audience to the brand new Asp.net, and its cross-platform story.
During this session the audience will be exposed to how to get Asp.net vNext up and running in Sublime and how to deploy it to the cloud. Targeted at beginners, the talk will be going over the frameworks, tools, and resources one would need to get started on any web project.
By the end of the presentation the audience will have an understanding of the new Asp.net vNext, and how to participate in this growing open source community.
20. Demystifying the Ds — DNVM
• What is DNVM ?
- version manager tool for the command line
- provides the functionality needed to configure your .NET runtime
• Using DNVM
- specify which version of DNX to use
• Installing : PowerShell, CMD, Homebrew, Curl
@ladyNaggag
21. Demystifying the Ds — DNX
• What is DNX ?
- SDK and runtime environment with everything you need to build and run .NET applications for
Windows, Mac and Linux.
• Installing : Homebrew
@ladyNaggag
22. Demystifying the Ds — DNU
• What is DNU ?
- command-line tool which provides a variety of utility functions to assist with
development in ASP.NET
• Using DNU
- install and manage library packages
- package and publish applications
@ladyNaggag
28. npm install —global yo
npm install grunt-cli generator-aspnet bower
yo aspnet
29. What kind of projects can you build ?
Console Applications
Empty Application
Web Application
Web API Applications
Nancy ASP.NET Applications
yo aspnet
@ladyNaggag
33. Setting up — Windows
Installing DNVM
@ladyNaggag
Windows –
CMD
@powershell -NoProfile -ExecutionPolicy unrestricted -
Command "&{$Branch='dev';iex ((new-object
net.webclient).DownloadString('https://raw.githubuser
content.com/aspnet/Home/dev/dnvminstall.ps1'))}"
34. Setting up — Windows
Installing DNVM
@ladyNaggag
Windows – Powershell
&{$Branch='dev';iex
((newobjectnet.webclient).DownloadString('https:
//raw.githubusercontent.com/aspnet/Home/dev/d
nvminstall.ps1'))}
36. Setting up— Homebrew
Installing DNVM
@ladyNaggag
OS X - Homebrew
brew tap
aspnet/dnx
brew install dnvm
brew untap aspnet/dnx
brew tap aspnet/dnx
source dnvm.sh
37. Setting up — Ubuntu & Debian
Working version of Mono
Get & compile libuv (for kestrel server)
Get DNVM
Add NuGet config sources
@ladyNaggag
bit.ly/DebianUbuntu
Thank you for coming to my talk ASP.NET 5 talk : Hey ASP.NET isn’t just for enterprise.
Who Am I ? My name Maria Naggaga I am Technical Evangelist for Microsoft based out of NYC . As Evangelist I get talked about a variety of different topics to variety of developers. Ranging from Students , to startups, game developers. My talk to today was inspired with the success I had with introducing ASP.NET 5 to an unlikely crowd of developers
The idea for this talk came out of the challenge that was setup for me by students I have work. They want to know what the Microsoft OSS developers with no friction and easy installations.
limited access
Exclusive ! In some cases this can be regards to how a language is use like , C# - you think native, C++
Outdated !
Building for the modern web is about targeting various platforms, form factors so your enduser has the same experience regardless of the device or Operating system there are using.
Modern Web development is targeting various form factors tablets browser, and phoned and providing the same experiences across multiple platforms.
To do this you need a variety of packages and libraries to make it possible.
So, this is pretty busy slide. If you have been a web developer the past couple of years or months like myself these terms will not seem foreign,. Task Runners: like Gulp, and Grunt, Packages like npm, bower, nuget, homebrew
Node js
I know this might sound like a lot of marketing stuff but it really is all these things. New because Everything from the .NetCore and up has been rewritten or repurposed
Why Asp.net Why now ? What does asp.net mean for them is it all new set of tools, OS or environments they don’t necessarily use
Open Source!!! And truly is everything is on github and built in the open. This means the you will see commits on the repository. You can also seek help, and give feedback
Here is a great example. I was finishing a project I was working on and I did the regular mistake I did a package update. So when I got this error I didn’t know what do. It was like 2 AM and I like do you know what I will post my question on the ASP.NET Home page on github and let future Maria deal with it. To my surprise David Fowler on of the engineers on the ASP.NET5 project got back to me in matter of minutes and all was fixed. This goes to show how .NET internal engineers are building with the community.
The .NET Execution Environment is a software development kit (SDK) and runtime environment that has everything you need to build and run .NET applications for Windows, Mac and Linux
Demystify the D commands. Packages
DNVM is a version manager tool for the command line. As its name implies, DNVM provides the functionality needed to configure your .NET runtime. We can use DNVM to specify which version of the .NET Execution Environment to use at the process, user, or machine level.
DNX The .NET Execution Environment (DNX) is a software development kit (SDK) and runtime environment that has everything you need to build and run .NET applications for Windows, Mac and Linux.
DNU : is a command-line tool which provides a variety of utility functions to assist with development in ASP.NET. Most commonly, we will use DNU to install and manage library packages in our application, and/or to package and publish our own application.
DNU uses Nuget behind the scenes for package management and deployment.
http://www.typecastexception.com/post/2015/05/17/DNVM-DNX-and-DNU-Understanding-the-ASPNET-5-Runtime-Options.aspx#Use-DNU-Restore-to-Restore-Packages
install and manage library packages
package and publish applications
Work where you want and where you want. With ASP.NET you can work where you want on what where
Visual Studio 2015 makes it really simple File new project. With Grunt- task runner, Bower- package manager , gulp -Automate and enhance your workflow , and npm already packaged for you
Tools of the trade
You can run a webserver!! Client side
http://nodejs.org/
Node Js a and Microsoft
http://azure.microsoft.com/en-us/develop/nodejs/
Open up page to show Azure compatibility
Yeoman is an open source sleek scaffolding tool that consists frameworks that make it quick and easy to build web applications. The neat thing about Yeoman is it combines several functions into one place, such as template generators
http://yeoman.io/
Yeoman is the engine the yo aspnet , grunt