0% found this document useful (0 votes)
11 views9 pages

ASP.NET Core Student Handbook Guide

This document presents an introduction to the training module "Introduction to ASP.NET Core." It explains that ASP.NET Core is a modern, open-source, cross-platform framework for building web applications. The module contains 4 lessons with theoretical concepts and practical exercises for creating MVC web applications, Razor Pages, and APIs with ASP.NET Core. It is aimed at developers with experience in ASP.NET MVC and requires Visual Studio 2017 to complete the exercises.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views9 pages

ASP.NET Core Student Handbook Guide

This document presents an introduction to the training module "Introduction to ASP.NET Core." It explains that ASP.NET Core is a modern, open-source, cross-platform framework for building web applications. The module contains 4 lessons with theoretical concepts and practical exercises for creating MVC web applications, Razor Pages, and APIs with ASP.NET Core. It is aimed at developers with experience in ASP.NET MVC and requires Visual Studio 2017 to complete the exercises.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

[Link] Core Introduction to ASP.

NET Core

Introduction to
[Link] Core
Student Handbook

First edition
March 2018

Page 1 soporte@[Link] [Link]


[Link] Core Introduction to [Link] Core

Content
Introduction................................................................................................................................. 4
About the module........................................................................................................................ 5
Audience......................................................................................................................................... 5
Objectives ......................................................................................................................................... 5
Requirements ............................................................................................................................... 5
Module content..................................................................................................................... 6
Lesson 1 Introduction to [Link] Core
.NET Core is a cross-platform, open-source framework for building applications that can run on Windows, macOS, and Linux.? ......................................................................................................................... 8
What is [Link] Core?
Choosing between [Link] and [Link] Core.............................................................. 16
Exercise 1: Preparing the development environment.
Exercise 2: Creating your first .NET Core application.............................. 22
Exercise 3: Creating your first [Link] Core application from the command line ................. 25
Exercise 4: Creating your first [Link] Core application from Visual Studio............................ 29
Exercise 5: Exploring the code. ................................................................................................. 31
Lesson 2 Creating a web UI application with [Link] Core MVC .38
What is [Link] Core MVC?
Exercise 1: Creating a web UI application [Link] Core MVC ................................................. 41
Exercise 2: Configuring the Startup class.................................................................................... 43
Exercise 3: Adding a Controller ........................................................................................ 45
Exercise 4: Adding a View.................................................................................................. 47
Exercise 5: Adding a Model ............................................................................................... 50
Exercise 6: Implementing a repository using Dependency Injection.................... 52
Exercise 7: Implementing functionality in the Controller and the Views................................... 59
Lesson 3 Creating a Razor Pages web UI application with [Link] Core ...................................... 64
What are Razor Pages?
Exercise 1: Creating a web application UI Razor Pages. .66
Exercise 2: Adding the Model and the Application Service................................................... 69
Exercise 3: Adding Razor Pages

Page 2 soporte@[Link] [Link]


[Link] Core Introduction to [Link] Core

Lesson 4 Creating a web API with [Link] Core ......................................................... 86


Introduction to Web API
Exercise 1: Creating a web API................................................................................................. 88
Exercise 2: Exploring the code.................................................................................................. 90
Exercise 3: Adding the Model and the Application Service................................................... 92
Exercise 4: Implementing functionality in the Controller ..................................................... 97
Summary

Page 3 soporte@[Link] [Link]


[Link] Core Introduction to [Link] Core

Introduccion
Hello, how are you? My name is Miguel Muñoz Serafín, responsible for the training 'Introduction to
[Link] Core.

Currently, one of the web application development technologies that has gained significant attention
impact of [Link] Core. Some of the factors we can highlight about [Link] Core are that
in addition to being an open-source framework, it provides us with tools for development of
cross-platform applications, which means we can now develop Web applications and
hosting them on Windows, Linux, or macOS servers.

This training arises from the need to create an introductory learning guide on
[Link] Core. Throughout this training, theoretical concepts and a series of
exercises aimed at introducing the participant to web application development
using the [Link] Core framework and Visual Studio in a simple and practical way.
Information for this training has been taken from official Microsoft sites, as well as from the
interaction with the [Link] development groups.

We have developed the content of this training with special collaboration from Yazmín Nabor.
López, who has taken it upon himself to design the material by presenting it in a series of step-by-step exercises.
a step to facilitate learning.

Yazmin has a degree in Computer Science, she began her professional career in 2004.
software development by participating in multiple projects developed on the .NET platform.
Since 2014, he has been part of the IT Training team, mainly participating in the area of
software development and content generation.

Welcome to this training!

Miguel Muñoz Serafín

[Link]

Page 4 support@[Link] [Link]


[Link] Core Introduction to [Link] Core

Acerca del modulo


[Link] Core is a redesign of [Link] with architectural changes that result in a
more compact and modular framework. Since [Link] Core is an open-source framework,
multiplatform and high performance, allows us to build modern web applications,
connected to the internet and cloud-based.

In this module, an introduction to .NET Core, [Link] Core, and to development is presented.
web applications with [Link] Core. The steps to follow to prepare the environment are described
development with Visual Studio for the creation of web applications with [Link] Core. It includes
Exercises to create web applications UI MVC, web UI Razor Pages, and web API using C# and [Link]
Core.

Audience
This module is aimed at developers with experience in web application development with
[Link] MVC and C#.

Objectives
Upon completing this module, participants will have the skills and knowledge to:

• Create a basic MVC web application with [Link] Core.


• Create a basic Razor Pages Web application with [Link] Core.
• Create a basic Web API application with [Link] Core.

Requirements
In order to complete the exercises in this module, it is necessary to have the following:
• A development team with Visual Studio 2017. The free version can be used.
Studio Community that can be downloaded from the following link:

The provided text is a URL. Please provide a text that needs to be translated.

The examples described in this module were designed with Visual Studio Enterprise 2017
on a machine with Windows 10 Pro.

Page 5 support@[Link] Invalid input. Please provide text for translation.


[Link] Core Introduction to [Link] Core

Module content
The content of this training consists of 4 lessons.

Lesson 1: Introduction to [Link] Core.

This lesson provides an introduction to .NET Core and [Link] Core. It also describes
the steps to follow to prepare the development environment with Visual Studio for the creation of
web applications with [Link] Core. Exercises are provided to create a Hello application
World! both with .NET Core and with [Link] Core using the tool dotnet and Visual Studio.
Additionally, the purpose of the class Startup is explained.

Lesson 2: Creating a web UI MVC application with [Link] Core.

This lesson presents an introduction to [Link] Core MVC and provides the steps to
create a web UI application with [Link] Core MVC and C# from Visual Studio. The use of is explained
services applying the Dependency Injection (DI) technique.

Lesson 3: Creating a web application UI Razor Pages with [Link] Core.

In this lesson, the steps to create a web application UI Razor Pages with [Link] are provided.
Core and C# from Visual Studio. An introduction to Razor Pages is provided, the new feature.
of [Link] Core 2.0 that makes coding page-centric scenarios easier and
productive.

Lesson 4: Creating a web API with [Link] Core.

This lesson presents an introduction to web API application development with [Link] Core.
MVC and C# from Visual Studio. Throughout this lesson, a web API will be developed using the
new Web API template.

Page 6 support@[Link] [Link]


[Link] Core Introduction to [Link] Core

Lesson 1
Introduction to [Link] Core
This lesson provides an introduction to .NET Core and [Link] Core. It also describes
the steps to follow to prepare the development environment with Visual Studio for creation of
web applications with [Link] Core. Exercises are provided to create a Hello application!
World! both with .NET Core and with [Link] Core and the purpose of the Startup class is explained.

Lesson Objectives
At the end of this lesson, participants will be able to:

• .NET Core is a cross-platform, open-source framework for building modern applications. It allows developers to create applications that can run on Windows, macOS, and Linux.

• Define what [Link] Core is.


• Set up your Visual Studio development environment to start developing applications
web with [Link] Core.

Page 7 support@[Link] [Link]


[Link] Core Introduction to [Link] Core

.NET Core is a cross-platform, open-source framework developed by Microsoft for building modern applications.

.NET Core is a modular, cross-platform, and open-source implementation of the .NET Standard.
designed to be portable across platforms in order to allow code reuse for
maximum and its shared use. It contains many of the same APIs as the .NET Framework
(but .NET Core is a smaller set) and includes runtime components
(runtime), framework, compiler and tools that support a variety of operating systems
.NET Core's implementation was mainly focused on workloads.
[Link] Core work, but also out of the need and desire to have an implementation
more modern.

.NET Core is a general-purpose development platform maintained by Microsoft and the


.NET community on GitHub. It is cross-platform, compatible with Windows, macOS, and Linux, and can...
to be used in devices, in the cloud, and integrated/IoT scenarios.

.NET Core is cross-platform because, although it is a subset of the version


complete .NET Framework provides a key functionality to implement the
characteristics that an application needs and reuse that code regardless of the destination
the platform.

Previously, the different versions of .NET for different platforms lacked functionality.
shared for key tasks, such as reading local files. The platforms
Microsoft that can be targeted by a .NET Core application or library include
Traditional desktop Windows, as well as Windows devices and phones. When used
tools like Xamarin, .NET Core are portable for iOS and Android devices. Moreover, .NET
Core is available for Mac and Linux operating systems to allow web applications
are executed in these systems.

.NET Core is modular as it is published through NuGet in assembly packages.


reduced. Instead of a large assembly that contains most of the functionality
.NET Core is available as smaller feature-focused packages
specific. This allows us a more agile development model and provides us the possibility to choose
the functionalities we need for our applications and libraries.

The following are the main features of .NET Core:

• .NET Core provides key functionality for implementing the


characteristics that an application needs and reuse that code regardless of the
destination platform. Currently supports three major operating systems: Windows,
Linux and macOS. We can write applications and libraries that run without
modifications through the supported operating systems. The operating systems
supported, CPUs and application scenarios will grow over time, provided by
Microsoft, other companies and individuals.

Page 8 soporte@[Link] [Link]

You might also like