1. 程式人生 > >.netcore 打包發布到ubuntu linux上

.netcore 打包發布到ubuntu linux上

core 項目 build 6.0 inux bin ftp 文件 目錄

使用命令行發布如下

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 項目即運行

.netcore 打包發布到ubuntu linux上