1. 程式人生 > >dotnet core 跨平臺編譯發布

dotnet core 跨平臺編譯發布

code elf nbsp dot his ocs deploy gpo 跨平臺

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

dotnet core 跨平臺編譯發布