vs2017 建立的项目,在项目目录 ,执行
dotnet publish -r ubuntu.15.04-x64
dotnet publish -r linux-x64
dotnet publish -r osx-x64
dotnet publish -r ubuntu-x64
dotnet publish -r centos-x64
会把所需要的dotnet core所有dll打包。不需要另外安装dotnet core sdk
https://docs.microsoft.com/zh-cn/dotnet/core/rid-catalog
https://docs.microsoft.com/zh-cn/dotnet/core/deploying/index#self-contained-deployments-scd
https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish?tabs=netcore2x
https://www.cnblogs.com/kubishishu/p/5430955.html
原文地址:https://www.cnblogs.com/coolyylu/p/8146537.html
时间: 2024-10-02 08:47:09