article

Introduction to asp.net5

Lesson 2 - Visual Studio

[WHAT]

  1. ] VIDEO SUMMARY - summary notes on the video, this lesson ...  Examine Visual Studio 2015, and learn how to create your first application

[WHY]

[WHERE]

  1. ] WATCH THE FULL VIDEO
    1. ] Introduction to asp.net5 - Lesson 2 - Visual Studio

[WHEN]

  1. ] 2015-08-12 - created 
  2. ] 2015-09-15 - published

[EXAMPLE]

  1. [00:00] introduction
    1. ] Scott Hanselman - 
    2. ] Glen Chondron - 
  2. [02:00] download and install the Visual Studio IDE 
    1. ] use this URL to view the currently available options for free versions of - http://visualstudio.com/free
    2. > ] visual studio(VS) community - is the full featured VS IDE, aka previosly known as professional version, available for FREE (in most cases)
    3. ] visual studio online -  
    4. ] visual studio code - is a new text editor, you can also use this to develop web applications, a great choice for x-platfrom development
    5. *] there are also other versions of VS available, for example, the "Enterprise version", that does have some additional features, but costs money 
  3. [00:00] sign in to VS, choose your language, your application type and viola - you have an application
    1. ] VS newsfeed page shows you relevant articles/videos about VS/development as your home/start page 
    2. ] signing in to VS ( with your microsoft account) enables you to save your VS themes, fonts, colors across different machines 
    3. ] CHOOSE file new project - to start a new project
    4. ] select your language on the left hand side of the dialog that appears, choose C# ( other options include VB, C++, F#, JavaScript, Typescript and more )
    5. ] once you select a language, an application types dialog window will appear, select "web" from the - this display ( other options include windows, android, cloud, ios, ... )
    6. ] name your application, hit OK 
    7. ] dialog with asp.net application types appears, has options for .net 4.6 Templates and .net 5 templates, 
    8. ] choose either Blank, Web application or Web API from the .net5 templates
    9. ] Blank - a new empty web application
    10. ] Web Application (default) - includes some pre-built functionality and application layout
    11. ] Web API - for building API's aka returning json data 
    12. ] click OK - to create the selected Web Application template 
  4. [00:00]
    1. ] blank application has a readme file, handy b/c it contains links to helpful resources for developing with asp.net5 
    2. ] points out SOLUTION EXPLORER tab in IDE -  
  5. [13:00] whats in the "empty application" 
    1. ] startup.cs - code that runs every time your application is started, ] contains stuff that you can configure (action methods) that will run on every request to your application)
    2. ] project.json
    3. ] solution -  a collection of project(s) 
    4. ] right click option in project viewer to view files in folder ( on disk)
    5. ] files in folder map pretty much to what is displayed in project explorer view
    6. ] NEW adding a file to the filesystem, this will show up in your project, prev ver of VS did not have this capability  
  6. [00:00] experiment 1 - renamed "readme" as "index"
    1. ] then launched the application, - no index page is being served up, whats going on?
    2. ] vs starts ths starts the web server, starts your browser, points your browser to your web applicaton
    3. ] when your web app starts, it runs the code in "startup.cs" file
    4. ] this is what we are currently seeing, NOT the file name index being served up
    5. ] the Configure methods inside the Startup.cs is what is executing, 
    6. ] all of the requests coming into the web server are directed to here
  7. [00:00] what we usually do in App.configure
    1. ] stitch together pieces of code(middleware) that will run to handle a "request" as it goes through our "pipeline"
    2. ] middleware does stuff like ] serve static files ] authentication, ] routing, ] diagnostics / logging
    3. ] effectively you can do anything - with middlware - all middleware is optional, add what you need/want
  8. [00:00] references
    1. ] to serve static files we need to add middleware to our app that will do that. 
    2. ] add a line to your code - "app.UseStaticFiles()" to run the middleware that will do that
    3. ] TIP - you can add a reference by typing a method name, then click the link that shows you "possible solutions", VS will download and install package for you
  9. [29:45] wwwroot
    1. ] this is the location, where all of our app's 'static' files live. 
    2. ] files for javascript, css, html, images, 
    3. ] why we need wwwroot - as the root folder for our static files 
    4. ] previously the project was the root folder, 
    5. ] any files that are now in the root of the project like 'hosting.ini' will no longer be served 
  10. [00:00]
    1. ] highlight in VS (points out errors), left side of code windo
  11. [00:00] REVIEW - lesson 2  
    1. ] we have created an empty asp.net application
    2. ] served a static file
    3. ] added a piece of middleware to it 
    4. ] next lesson is on ___ the full web app template, more server side stuff 

[HOW-TO]

  1. ] # 5050 - my project - guide to asp.net - MVC
    1. ] # # -

[REFERENCE]

  1. # 4804 - overview series 

 

quiz 

1. which of the following best describes iis express

2. The middleware pipeline in processed in order

3. which of following is (the definition) of a solution in VS

4. which 3 of the following are examples of middleware?

5. which of the following is a followup to vs web express

 

results = 5/5 total = 96 , rank.local = 1480, rank.global = 101,169 total=3,555,000. 

 

 

 

 

 

Details Photos Edit more

Details

ID: 4806

NAME: introduction-asp.net5-lesson-2

DESCRIPTION: [35:19]VIDEO-SUMMARY Introduction to asp.net5 - Lesson 2 - Visual Studio - by Scott Hanselman and Glen Condron

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and