在Linux上编译dotnet cli的源代码生成.NET Core SDK的安装包
来源:互联网 发布:阿里云添加域名解析 编辑:程序博客网 时间:2024/06/04 19:38
.NET 的开源,有了更多的DIY乐趣。这篇博文记录一下在新安装的 Linux Ubuntu 14.04 上通过自己动手编译 dotnet cli 的源代码生成 .net core sdk 的 deb 安装包。
1)安装一个现有版本的 .net core sdk
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893sudo apt-get updateapt-get install dotnet-dev-1.0.0-preview2.1-003177
如果不安装,build时会出现下面的错误
dotnet_install: Error: Unable to locate libunwind. Install libunwind to continuedotnet_install: Error: Unable to locate libicu. Install libicu to continue
2)从 github 上签出 dotnet cli 的源代码
apt-get install gitgit clone https://github.com/dotnet/cli.git
3)安装依赖组件 liblldb, devscripts, debhelper
apt-get install liblldb-3.6apt-get install devscriptsapt-get install debhelperapt-get install curl
4)运行 build 命令
./build.sh /t:compile
5)build 成功后的输出结果
~/cli/artifacts/ubuntu.14.04-x64/packages# lsdotnet-host-ubuntu-x64.1.0.1.debdotnet-hostfxr-ubuntu-x64.1.0.1.debdotnet-sharedframework-ubuntu-x64.1.0.1.deb
注:在 build 时可通过 init-microsoft.dotnet.buildtools.log 日志文件查看 build 进度。
原文地址:http://www.cnblogs.com/dudu/p/6140767.html
.NET社区新闻,深度好文,微信中搜索dotNET跨平台或扫描二维码关注
阅读全文
0 0
- 在Linux上编译dotnet cli的源代码生成.NET Core SDK的安装包
- 最新版dotnet-cli下的ASP.NET Core和asp.net mvc【RC2尝鲜】
- 【dotnet跨平台】最新版dotnet-cli下的ASP.NET Core和asp.net mvc【RC2尝鲜】
- 在Linux上生成Core Dump文件的配置
- asp.net core在linux上的部署调试
- dotnet的安装包例子
- 安装Linux的源代码包
- rtplib在linux上的编译安装
- linux在python上的编译安装
- rtplib在linux上的编译安装
- Linux 编译安装源代码包
- 在.NET Core 上运行的 WordPress
- 在.NET Core 上运行的 WordPress
- 在.NET Core 上运行的 WordPress
- 在.NET Core 上运行的 WordPress
- Linux 安装 .NET Core 1.0 SDK
- linux上的DotNET,安装mono和Jexus心得体会
- asp.net core 1.1 dotnet 生成DbContext
- RabbitMQ 高可用集群搭建及电商平台使用经验总结
- WebAPi的可视化输出模式(RabbitMQ、消息补偿相关)——所有webapi似乎都缺失的一个功能
- 开源软件那么多,我们该如何选择?|洞见
- 【新书推荐】《微软开源跨平台移动开发实践》带你走近微软开源开源跨平台技术
- 软件工程技术的未来
- 在Linux上编译dotnet cli的源代码生成.NET Core SDK的安装包
- 微软推出《我的世界》“编程一小时”免费教程,携手Code.org普及计算机科学教育
- .NET Core Tools转向使用MSBuild项目格式
- 大新闻!Magic Leap造假,HoloLens即将入华商用
- 一个基于Microsoft Azure、ASP.NET Core和Docker的博客系统
- Azure 部署 Asp.NET Core Web App
- 理想的互联网服务后台框架的九个要点
- 关于全局ID,雪花(snowflake)算法的说明
- ASP.NET Core File Providers