HI WELCOME TO KANSIRIS
Showing posts with label asp.net core. Show all posts
Showing posts with label asp.net core. Show all posts

ASP.NET Core - Startup Class

Leave a Comment
Here, we will have an overview of Startup class contained in Startup.cs in the root folder of the project. ASP.NET Core application must include Startup class. It is like Global.asax in the traditional .NET application. As the name suggests, it is executed first when the application starts. The startup class can be configured using UseStartup<T>() method at the time of configuring the host in the Main() method.

ASP.NET Core - Program.cs

Leave a Comment
ASP.NET Core web application is actually a console project which starts executing from the entry point public static void Main() in Program class where we can create a host for the web application. The steps for creating a host in ASP.NET Core 1.x is slightly different in ASP.NET Core 2.x. Let's understand Program class in ASP.NET Core 1.x application so that it will be easy to understand it in ASP.NET Core 2.x. Setup Host in ASP.NET Core 1.x The following is a typical Program.cs in ASP.NET Core 1.x. Program.cs using.

ASP.NET Core - wwwroot

Leave a Comment
By default, the wwwroot folder in the ASP.NET Core project is treated as a web root folder. Static files can be stored in any folder under the web root and accessed with a relative path to that root. In the standard ASP.NET application, static files can be served from the root folder of an application or any other folder under it. This has been changed in ASP.NET Core. Now, only those files that are in the web root - wwwroot.

ASP.NET Core Project Structure

Leave a Comment
In the previous chapter, we created our first ASP.NET Core 2.0 web application. Here, you will learn about the project structure and significance of each file created by ASP.NET Core application template in Visual Studio 2017. The following is a default project structure when you create an empty ASP.NET Core application in Visual Studio. ASP.NET Core Project Structure The above solution explorer displays project solution. We can change.

First ASP.NET Core Application

Leave a Comment
Here, we will learn how to create our first .NET core 2.0 application. We will use Visual Studio 2017 to create ASP.NET Core 2.0 web application. The first step is to open Visual Studio. Click on File->New, and click on Projects. In the New Project dialog box, click on the Templates node. Expand the Templates node, then expand Visual C#, and click on the Web template. ASP.NET Project Templates As shown above, the middle pane on.

ASP.NET Core - Development Environment Setup

Leave a Comment
To develop ASP.NET Core application, the following must be installed in your system: .NET Core SDK Integrated Development Environment (IDE) ASP.NET Core is a part of .NET Core SDK, so you don't need to install it separately. As of this writing, the current release is .NET Core 1.1. Read .NET Core Release Notes to know more about all the releases. Install .NET Core SDK .NET Core SDK can be installed on the platform you.