dotnet core publish and run
来源:互联网 发布:c语言对二维数组排序 编辑:程序博客网 时间:2024/06/05 03:00
refs:
ubuntu下运行环境安装:
https://www.microsoft.com/net/core#linuxubuntu
https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish
发布运行
http://www.cnblogs.com/linezero/p/5475246.html
http://www.cnblogs.com/ants/p/5659123.html
在工程目录根目录下
Windows:
这里默认输入 dotnet publish 会发布 win7-x64 。
我们定位到 win7-x64\publish 文件夹,可以直接执行 dotnethello.exe ,无需安装.netcore sdk 。
Ubuntu:
我们要发布到linux ubuntu 直接指定 runtime 。
dotnet publish -r ubuntu.16.04-x64
把发布文件夹(ubuntu.16.04-x64/publish)拷贝到ubuntu上。
直接就可以执行.
设置文件夹下的执行文件dotnethello 设置好权限以后直接 ./dotnethello
Mac OS:
同理mac os 一样,指定osx runtime。
dotnet publish -r osx.10.10-x64
将 osx.10.10-x64/publish 拷贝到mac os 。
阅读全文
0 0
- dotnet core publish and run
- .NET Core 跨平台发布(dotnet publish)
- 『.NET Core CLI工具文档』(十三)dotnet-publish
- 『.NET Core CLI工具文档』(九)dotnet-run
- dotnet core 命令详解
- DotNet Core全新认识
- dotnet core 2.0 安装
- dotnet core 命令详解
- DotNet Core 介绍
- Wcf Publish and consume
- .NET Core dotnet 命令大全
- dotnet publish 发布错误 No executable found matching command "bower"
- Import, Export, and Publish Customizations
- 【dotnet跨平台】"dotnet restore"和"dotnet run"都做了些什么?
- CentOS 7.1下安装dotnet core
- asp.net core 1.1 dotnet 生成DbContext
- [SSCore] 开源dotnet core 版本 SuperSocket
- dotnet core开发体验之开始MVC
- 盒马鲜生创意总监做客阿里双创平台,首度解析“河马”品牌设计的前世今生
- java 深克隆及浅克隆
- Linux 下载和安装JDK
- 读取csv文件转化为Json
- 链表问题合集
- dotnet core publish and run
- 函数柯里化
- activity的launchmode和taskAffinity学习笔记(二)
- StoryBoard segue 用法
- 使用Go实现了一个ping命令
- General Functions & Conditional Expressions
- 微信小程序加密数据(encryptedData)解密中的PHP代码,php7.1报错mcrypt_module_ is deprecated
- 解读大数据行业在2017年的新发展
- JS继承之间的