用 dotnet Cnblogs.Web.dll 命令可以运行,但将 Cnblogs.Web.dll 改名为 app.dll 之后,用 dotnet app.dll 命令运行却出现下面的错误:
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/publish'
将 Cnblogs.Web.runtimeconfig.json 也改名为 app.runtimeconfig.json ,这个错误消失。但出现新的错误:
System.IO.FileNotFoundException: Could not find file '/publish/app.deps.json'
将 Cnblogs.Web.deps.json 改名为 app.deps.json 后,错误变成:
Error: assembly specified in the dependencies manifest was not found -- package: 'cnblogs.web', version: '1.0.0', path: 'Cnblogs.Web.dll'