. NET Core Program deployment

Source: Internet
Author: User

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:

    1. . NET Core Runtime
    2. 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:

    1. Microsoft Visual C + + Redistributable Update 3
    2. 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:

    1. Publish. NET core to Windows Server 2008 in an offline environment
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.