dotnet core 跨平台编译发布

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

posted @ 2017-12-29 22:37  Ender.Lu  阅读(301)  评论(0编辑  收藏  举报