How C # tutorial released .net core items on centos operating system

surroundings:

Operating System: centos 7

.net core: 2.1.101

The official website of example address: https: //docs.microsoft.com/zh-cn/dotnet/core/linux-prerequisites tabs = netcore2x?

First, win VS under dows 2017 to create a new asp.net core web project, then we can choose two ways to publish the site is using a VS and right release, is to use dotnet publish command. We will generate a file uploaded to the server:

 

 

 

 But there is a problem with my .net core test program was written in VS 2017 under, while .net core dependent under VS dll are used directly nuget get the latest .net core version of the official website and its dependencies.

When we install dotnet core SDK on a centos server have a problem, because generally this time we have designated version dotnet core, but generally are not up to date, so this time will be a problem, once the test run it will error:

 

 How to deal with it? Then download the latest version of dotnet core chant, we can find * * deps.json files in the success of our publishing project dependencies inside view our dll version number of items.

Guess you like

Origin www.cnblogs.com/jiangjian123/p/11420565.html