Earlier, some programs were switched to. NET core, and this article records the methods associated with the. NET Core program deployment under Windows. Friends with the same needs can refer to, so as not to take a few detours.
The main task of the. NET Core program deployment is to install the. NET core runtime on the target machine, which can be downloaded from the official Microsoft Download website.
The official diagram clearly describes its operating environment, which requires the following two packages to be installed in terms of Windows. NET Core Program deployment:
- . NET Core Runtime
- ASP. NET Core Runtime
If you are deploying a. NET Core console program, you only need to follow the. NET core runtime, and if you are a Web program, you will also want to install the Web Runtime environment.
In particular, the Web runtime needs to be aware that at least it should not be lower than the MICROSOFT.ASPNETCORE.ALL version used by the project. I had a project that used the 2.0.6 (vs default), but when I deployed it was the 2.0.0 runtime, which took half a day to find the cause.
In addition, the. NET core operation requires the system to meet a certain prerequisite, Microsoft officials also have articles about these dependencies in more detail. Simply put, there are two main:
- Microsoft Visual C + + Redistributable Update 3
- KB2533623 .
Because. NET core is rapidly evolving, this article cannot cover all of the problems encountered, as well as future problems. If you encounter other problems, use search engines more. Some other articles about the. NET core deployment are also referenced here for reference:
- Publish. NET core to Windows Server 2008 in an offline environment
- Document Prerequisites for Install on Windows 7
In addition, it is best to use virtual machines to simulate the field environment before actual deployment, in case of pre-test work. You can even consider publishing directly using virtual machines.
. NET Core Program deployment