Asp.Net Core Project Creation

Creating asp net core web application

Estimated read time: 1:20

    AI is evolving every day. Don't fall behind.

    Join 50,000+ readers learning how to use AI in just 5 minutes daily.

    Completely free, unsubscribe at any time.

    Summary

    In this tutorial by Kudvenkat, we'll explore how to create a new ASP.NET Core project using Visual Studio 2017. The video walks through selecting appropriate project templates such as Console Application, Class Library, and Web Application with different frameworks, explaining their uses. An emphasis is placed on using the Empty Template to build an ASP.NET Core project from scratch, helping to gain a clearer understanding of how various components fit together. The tutorial concludes with running the newly created project and displaying 'Hello World' in the browser.

      Highlights

      • We start by opening Visual Studio 2017 and selecting the right project template 🎨.
      • Using the Empty Template allows us to learn the structure from scratch 🔍.
      • Each template has a different focus - be it MVC, Razor Pages, or API 🍰.
      • The video showcases how to differentiate and apply various templates effectively 🛠️.
      • Ending with running the project, 'Hello World' appears in our browser! 🌟

      Key Takeaways

      • Choose the right project template in Visual Studio for your needs 🌟.
      • Starting with an Empty Template helps understand the core components better 🧩.
      • Visual Studio offers multiple templates, like MVC and Razor Pages, catering to different project requirements 🎯.
      • Utilizing specific frameworks like Angular or React can be easily managed with predefined templates 🚀.
      • Running the initial project to see 'Hello World' is a great initial milestone 🌐.

      Overview

      Kudvenkat starts by guiding us through the Visual Studio 2017 interface to create a new ASP.NET Core project. He explains the significance of different templates, which cater to various project types, including Console Applications, Class Libraries, and Web Applications.

        An interesting focus is maintained on using the Empty Template, which is touted as a great way to learn the ins and outs of an ASP.NET Core project without any pre-generated content, unlike the MVC model which creates numerous folders and files automatically.

          The tutorial is practical and hands-on, ending with running the newly created project to display 'Hello World' in the browser, setting the stage for more complex project developments in further tutorials.

            Creating asp net core web application Transcription

            • 00:00 - 00:30 this is part 3 of a spirited core tutorial in this video we'll discuss creating a new asp.net core project in Visual Studio 2017 and along the way we'll also discuss the different project templates that are available and what they do to create a new asp.net code project in Visual Studio click on file new project on the Left pane select dotnet Co under visual c-sharp because
            • 00:30 - 01:00 we are using C sharp as the programming language and then in the middle pane we'll find all the installed project templates notice we have a template for creating a dotnet core console application similarly a template for creating a class library project and then three templates for creating unit testing projects each template with a different unit testing framework ms test n unit and x unit and then finally a template for creating a spirit core web application we want to create a web
            • 01:00 - 01:30 application so I'm going to select this template and then provide a meaningful name to our application we already use this application to create read update and delete employees so I'm going to name this employee management and I'm going to place the project within projects folder in C Drive and then finally click OK notice this screen displays the list of all available
            • 01:30 - 02:00 project templates for creating an asp.net core web application this first empty template does not contain much content it contains the bare minimum amount of content required to display hello world in the browser this is the template that we'll use and set up everything from scratch manually so we clearly understand how different pieces fit together in an asp.net core web project this template web application Model View controller
            • 02:00 - 02:30 generates lot of content for example it creates models views and controllers folders it also adds web specific things like CSS files JavaScript files layout files and other resources needed for a website I have already created a project using this template and here is that project notice we have quite a lot of content generated by this template we have models views and controllers folders in the views folder we have sample views
            • 02:30 - 03:00 and layout views that represent the user interface of a web application in this www dot for the we also have the CSS files and JavaScript files that are typically required by a web application we can use this template to create our project but because this template is generating quite a lot of content it might be a bit difficult to understand how these different pieces fit together so I have chosen to use the empty template so we can create everything
            • 03:00 - 03:30 from scratch next we have this API template as the name implies this template includes everything that we need to create an asp.net core restful HTTP service an API does not have a user interface so all the website specific things like JavaScript files CSS files view files layout files etc are not required for an API that data that a bevvy Barry exposes is usually consumed by other applications so an API template
            • 03:30 - 04:00 just creates the controllers folder and a sample controller within that folder it does not create web user interface specific things like views for example as they are not required for an API I already created a project using this API template and here is that project notice here we have much less content than the content that is generated by the web application MVC template we don't have
            • 04:00 - 04:30 all the website specific things like CSS files layout files JavaScript files we only have the controllers folder and it sample values controller within that folder next we have this web application template this template uses the new razor pages framework for building web applications with razor pages coding page focused scenario is easier and more productive we typically use this approach when we do
            • 04:30 - 05:00 not want the full complexity of asp.net MVC we can think of it as a slimmer version of the MVC framework well discus raiser pages in detail in our upcoming videos next we have this raise at last library project template as the name implies we use this template to create a reusable raiser class library project this project contains all the reusable user interface pieces like data models page models controllers
            • 05:00 - 05:30 pages raiser views and view components this raises the class library project can then be reused in multiple applications any application that uses the Razr class library can override the views and pages it contains well this razor class libraries in our upcoming videos finally we have these three templates we used these templates to create an asp.net co-op application in combination with angular react or react
            • 05:30 - 06:00 and redux now we want to use the empty template because we want to learn everything from scratch so select that and uncheck this checkbox configure for HTTPS and click OK there we go we have our asp.net core project generated now if we take a look at the solution Explorer notice we have the minimum amount of code generated by the empty project template all this project can do
            • 06:00 - 06:30 at the moment is display hello world in the browser so let's run our project to run the project click on the debug menu and then select this option start without debugging or we can also use the keyboard shortcut control f5 there we go we have hello world displayed as expected in our next video we'll explore and understand the asp.net core project file thank you for watching