Recently a bit empty, so the next study, netcore this Artifact
Known as cross-platform tool, from net is not limited to windows server, and early nice ah, we net programmer, does not smell?
Online search, 'netcore release liunx' many articles, shining it wants to get, but with the installation of the cloud model, there is a pit! The following elaborate
vs2019 netcore3.0 compilation of web engineering, commissioning all normal, release type to be portable
Step by step to build liunx of netcore environment, installation core3.0, everything is normal
Use ftp to upload files to compile the project liunx, enable the command 'dotnet ***. Dll', suggesting abnormal :( follows)
$ dotnet WebApplication2.dll
It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '3.0.0' was not found.
- The following frameworks were found:
2.1.14 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The .NET Core frameworks can be found at:
- https://aka.ms/dotnet-download
Analysis: I am a 3.0 environment, but the library was one of the Microsoft.AspNetCore.App 2.1.14! ! ! Lead version is not uniform, the environment missing!
Verify: Netcore environment in directory /usr/share/dotnet/shared/Microsoft.AspNetCore.App/
Conclusion: Indeed, there is only folders 2.1.14, 3.0.0 lack of environment I need
Solution: Tips by analyzing the output terminal, access 'https://aka.ms/dotnet-download' official website to download the package, unpack and find the corresponding folder, by following graphic description
This folder as a whole reached liunx go through ftp, liunx path is '/usr/share/dotnet/shared/Microsoft.AspNetCore.App/'
Note that only we can manage this directory as root user, so when your ftp login, you can directly use the root, the following summary, for reference only
Verify: Back liunx system, using the 'dotnet' command to enable it, here is a summary
Get! ! ! !