.netcore 打包发布到ubuntu linux上

使用命令行发布如下

cd    NetCoreServerOne    // project file place  项目文件 所在目录

dotnet build -r ubuntu.16.04-x64   // 建立 的  ubuntu.16.xxxxx   这个文件夹在 bin/debug/  这个目录下

dotnet publish -r ubuntu.16.04-x64   //  这个建立发布 的,会把所有的依赖都存到这个目录下

 

// 通过ftp 上传到  linux 后。  

进入所在目录,执行  dotnet    xxxxx.dll    项目即运行

 

posted @ 2018-09-22 14:46  孜然道  阅读(1354)  评论(0编辑  收藏  举报