Code and Coder: about .net core, C#, Delphi, Codetyphon, Freepascal, C++,Python, website technical records

Posted in tag [.net core]



DotNET Core 3.0 source understanding Host (2)

About Host, the easiest thing we think of is the start and stop of the program, and the very key function hidden in it is the initialization of the Host.

ASP.NET Core 3.0 Migration Guide

Migrate Release version of .NET Core 2.2 to .NET Core 3.0 Preview 9.

ASP.NET Core basic series(9) ASP.NET Core Web release package strip

1 Introduction In this section we will talk about how to optimize the heavy problem of ASP.NET Core Web publishing package. In ASP.NET Core Web App, we can install some JS and CSS plugins through Bower or NPM to facilitate the organization of front-end components. But this also brings me a problem, that is, the installation of the Bower package or NPM package needs to be packaged and uploaded to the server. If you publish the ASP.NET Core Web App now , the files that have been included in the project under wwwroot will be published....

ASP.NET Core basic series(8) ASP.NET Core and Bootstrap

introduction As a back-end development, the front-end indicates that the game does not turn, we generally choose to apply some open source Bootstrap template theme for front-end design. How to apply it? Today, simply create an ASP.NET Core Web MVC template project as an example to apply a third-party Bootstrap Template - Admin LTE . AdminLte Dashboard 1. Create ASP.NET Core MVC Demo The command line execution dotnet new mvc -n ApplyBootstrapTemplateallows you to create a preset MVC template project. The project structure is as fo...

ASP.NET Core basic series(7) say NO for repeat compilation – dotnet watch

1 Introduction Our general development process is code-->compile-->run-->debug-->location problem--->modify code-->compile-->..., looping back and forth, but hard work, but in fact The heart is very resistant. Introduce the tool under the .NET Core platform today - dotnet watch. It is used to monitor project file changes in real time. If there are file changes, the project will be automatically recompiled and run, which greatly saves us time for recompilation and debugging. 2. Instructions for use Install the Micro...

ASP.NET Core basic series(6) VS Code and Angular and .NetCore

  1 Introduction I was recently impressed by the "Programmer's Growth Lesson", which talked about how programmers build skill trees. As a background development programmer, I feel that the skills are single, let alone the skill tree. As a qualified background programmer, you must master at least one static language, one dynamic language and one front-end language. The static language C# is not proficient, and the dynamic language Python is just getting started. But the front end is blank, although I have learned about jquery and bootstra...

ASP.NET Core basic series(5) Building a .Net Core development environment on Linux

We know that the biggest feature of .NET Core is cross-platform, so we should have a basic understanding of how to build a development environment on Linux. If you want to build a stand-alone Linux server for practical operation, it is recommended to refer to the ASP.NET Core Quick Start (Environmental--Agricultural Code Lifetime) . If no independent Linux systems, can make use of Tencent cloud Developer Lab , which provides free developer exclusive online experiment platform, in the above we can easily learn new techniques and ...

ASP.NET Core basic series(4) Debugging

ASP.NET Core symbol server: https://dotnet.myget.org/F/dotnet-core/symbols/ 1. Uncheck Enable Just my Code Check Microsoft Symbol Servers 1. Set up the symbol server Check Source Link Support 2. Specify the assembly to be debugged 3. Set source debugging If you encounter an additional process that cannot debug a .Net Core project, be careful to modify the attached process to dotnet.exe : Debugging ASP.NET Core 2.0 Source Code Orignal link:https://www.jianshu.com/p/74789c59e589

ASP.NET Core basic series(3) the startup process

1 Introduction For ASP.NET Core applications, it's important to remember that it's essentially a standalone console application that doesn't have to be hosted inside IIS and doesn't require IIS to start running (and this It is the cornerstone of ASP.NET Core cross-platform). ASP.NET Core applications have a built-in Self-Hosted (self-hosted) of the Web Server (Web server) , to handle external requests. Whether it's hosting or self-hosting, you can't do without Host . In the ASP.NET Core application, configure and start a Host to complete th...

ASP.NET Core basic series(2) startup class

  1 Introduction The default startup class named Startup, it is in order to construct a program entry point IWebHost through UseStartup<Startup>()specified. Mainly defined two methods ConfigureServiceand Configuremethods. The application starts with UseStartupa Startupclass or assembly specified by the method , with StartupLoadera reflective call to complete the dependency service registration and middleware registration to construct a complete HTTP request pipeline. Let's explore the simple usage of the Startup class in the MVC...