vscode编译发布exe

命令1:

dotnet build -r win-x64

命令2:

dotnet publish -c Release -r win-x64

-r|--runtime:(window rid或者linux rid) -c|--configuration:{Debug|Release}

详细参考:

https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish?tabs=netcore21

https://docs.microsoft.com/zh-cn/dotnet/core/rid-catalog

posted @ 2019-04-29 16:23  therhub  阅读(990)  评论(0编辑  收藏  举报