Go to ASP. 5: Preface--Preparation--Overview

Source: Internet
Author: User

1. Preface

    • 1.1 Statement

Unfortunately, the previous "ASP. NETVnext Summary " series has not been finished and no longer continues. Reason: First, this time preparation pressure is very big, do not have to take care of sharing, second, think Vnext study is not deep enough, as far as possible not fraught, on time encryption (password: givecase) post; Three is Vnext technology, for the beta phase, technical details are still changing.

To emphasize: it is not here to communicate with you to show me how selfless and noble, it is important to me is also a process of knowledge summary. I also always in the heart (hehe, did not pay the support, even if I hypocrisy!) Thanksgiving Many enthusiastic friends, thank them for their pay. Do not know whether I am psychologically healthy? Anyway the comment does not want to get the " objection " without saying the reason, alas! Comfort yourself, when your hand is slipping.

    • 1.2 Title

The title of this article " play " Two words certainly Puma, purely the title party attracts eyeball. If you want to play with ASP. NET 5, I am still on the "Learn" road, perhaps you play it more than I do. How can an article that cannot be long-winded be mastered? So also hope you comfort yourself said: Elder brother, as passing!

2. Preparation

    • 2.1VS2015 Installation

VS Official http://www.visualstudio.com (see the Park Friends Post said, even have been a pit. In fact, Microsoft's east of the first release address, first look at the original English page. )

If the network speed is fast enough, you can install it online, or we recommend downloading the ISO installation. VS2015 CTP5 compared to the preview version, many cross-platform mobile development packages are integrated (and less a network-installed pit).

Warm tip: Based on VS2015 tool development is still in beta (attention to myget.org and githup.com almost daily updates), production environment is not recommended, only for the early adopters!

In the Hyper Virtual win8.1 system (in accordance with customary vs official release will be released RC version, really inconvenient in the real system toss) under the installation process, tick the Web development One,

Next the long journey began, and had to spit it out a bit longer than the operating system was installed. MS's determination and foresight is too big, just released the preview version of Win10, to unify the computer, tablet and mobile system (three screen one cloud strategy). Ideal is very good, Ms so big company, the wisdom of many people, more money, believe that the reality will eventually improve.

The VS development tool also varies greatly, which may be the trend. But Ms always first pits the " trendy " followers, the Windows platform's CORECLR module is not separated well, thinking of cross-platform, WindowsPhone and Windows app is not integrated well, but also want to integrate Android and iOS development. Even plug-in tools have to be integrated into a bunch, such as NPM technology applications .... Why would you want to eat a fat mouth? First out of a Windows platform under the ASP.NET5 development of the VS2015 official version of the line. Oh, of course, we will say that change is too small, not many bright spots. In fact, MS is too little to sell, do not want to go out? OK, MS no Zuo no die! let's wait. Dares to toss the immortal, when passes the time to follow the MS Rhythm to play the beta endless.

Some MS Big iron powder will say, who makes you silly! Hehe, the work pressure is big, own technology to raise. By Ms Motionless technology show, let the population of water, eyes, desires ... Even out of curiosity (this will kill the cat), very afraid of their out, do not have to learn the real skills, at least to be able to bluff people, but also to understand some.

Well, after a few words, drink tea Kung Fu. Install a successful interface below (if the installation environment does not meet or the process fails, there will be an error log):

When you restart your computer, it will be ready for use with some configuration and updates.

    • 2.2 Project templates

Before playing ASP. NET 5, it is known that there are currently vnext four templates (it is said that CTP5 can also be a WPF template because it is not concerned, so you know it yourself), as shown in:

There are two under Web application:

ASP: 5 Class Library Template

ASP. 5 Console Application: Console Application

ASP. NET 5 empty:web application, the directory structure is relatively concise

ASP 5 Starter web:web application, the template is more complete (beginners recommend it first experience)

3. Overview

    • 3.1mvc6

What is MVC6?

Key support includes such as:

HTML static pages are supported in Web projects, Razor view, MVC is supported in Web project reference, HTML helpers is usually razor extension method, so it is supported in Web projects.

MVC and Webapi seem a little different (how about that?) Don't be too tangled! In fact, WEBAPI supports the rest style, which means that the action method name can be prefixed with an HTTP method or an HTTP method, and the routing pipeline is unified in MVC6.

    • 3.2entityframework7

(I would like to not outline the EF7 here, but because it is convenient to use the "old" place)

It is an ORM framework (read on separately). ( Note: The following support has yet to be perfected.) )

EF7 Supported application platforms : all. NETFramework (including the original project), Windows Phone, Windows Store, ASP. NET 5, Mac, and Linux.

EF7 supported databases : SQL Server (relational database), Sqllite (embedded database, General app project use), Azure table Storage (Microsoft Cloud table Storage), Redis (NoSQL non-relational database), In memory (run in RAM, simulate test).

Just like VS2015 when the IDE is the most powerful, EF7 also want to do the ORM field the most bull. Microsoft fans are looking forward to it! No matter how powerful the thing is, we still think that the encapsulated framework will certainly sacrifice performance if it is used in the underlying provider. It is true, not contradicting. Anyway, we use the same thing, try to use it as a director, to avoid it short.

    • 3.3 Project Structure

Before you start the next chapter, create an ASP. Starter Web Template project that describes the directory:

Wwwroot: Put static files, such as: JS,CSS, pictures, HTML and so on. (That is, the catalog when the project release is deployed)

Dependencies: Dependency means that the NPM tool installs and manages the logical folder of the download package (physical does not exist in this folder, you can go to the actual file directory and see how it is organized).

References: Refers to the meaning of the same logical folder. That is, the DLL assembly reference that the project is going to use. ASP. NET 5.0 is supported by the full CLR, and Core 5.0 is CLR support that separates modules.

CONTROLLERS:MVC's Controller

Migrations: Is the EF Add folder after migration configuration

Models: Model Folder

View folder for Views:mvc

Bower.json:bower Tool Configuration

Config.json: Config file, equivalent to the traditional web.config/app.config

Gruntfile.js:Task Runner (Grunt) tool configuration

Package.json: Configure Download NPM

Project.json: Configuration of the main references

Startup.cs: Program run-time entry

Note: The above description is only a general situation, in addition to the default convention, others can organize themselves.

4. Summary

The outline of this article is not detailed, further understand the address:

Http://www.asp.net/vnext (official address)

Https://github.com/aspnet/home (source hosting)

https://www.myget.org/F/aspnetrelease/(Beta release temporarily, officially available to go to nuget.org to find)

In addition video learning:

http://channel9.msdn.com/

http://www.microsoftvirtualacademy.com/(Microsoft Virtual College)

There are other communities, but they are blocked by great walls, or charged.    In fact, blog Park also has a lot of Daniel Early Asp.net5 wrote a lot of posts, self-search!

easy to exchange with like-minded friends, new QQ Group:290576772(Overtime Annotated blog Park)

Go to ASP. 5: Preface--Preparation--Overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.