這篇文章主要介紹如何在Linux上編譯dotnet cli的源代碼生成.NET Core SDK的安裝包,文中介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們一定要看完!

創(chuàng)新互聯(lián)建站2013年開創(chuàng)至今,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項目成都網(wǎng)站設(shè)計、網(wǎng)站建設(shè)網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元成都做網(wǎng)站,已為上家服務(wù),為成都各地企業(yè)和個人服務(wù),聯(lián)系電話:13518219792
.NET 的開源,有了更多的DIY樂趣。這篇博文記錄一下在新安裝的 Linux Ubuntu 14.04 上通過自己動手編譯 dotnet cli 的源代碼生成 .net core sdk 的 deb 安裝包。
1)安裝一個現(xiàn)有版本的 .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 417A0893 sudo apt-get update apt-get install dotnet-dev-1.0.0-preview2.1-003177
如果不安裝,build時會出現(xiàn)下面的錯誤
dotnet_install: Error: Unable to locate libunwind. Install libunwind to continue dotnet_install: Error: Unable to locate libicu. Install libicu to continue
2)從 github 上簽出 dotnet cli 的源代碼
apt-get install git git clone https://github.com/dotnet/cli.git
3)安裝依賴組件 liblldb, devscripts, debhelper
apt-get install liblldb-3.6 apt-get install devscripts apt-get install debhelper apt-get install curl
4)運行 build 命令
./build.sh /t:compile
5)build 成功后的輸出結(jié)果
~/cli/artifacts/ubuntu.14.04-x64/packages# lsdotnet-host-ubuntu-x64.1.0.1.deb dotnet-hostfxr-ubuntu-x64.1.0.1.deb dotnet-sharedframework-ubuntu-x64.1.0.1.deb
注:在 build 時可通過 init-microsoft.dotnet.buildtools.log 日志文件查看 build 進度。
以上是“如何在Linux上編譯dotnet cli的源代碼生成.NET Core SDK的安裝包”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
網(wǎng)站名稱:如何在Linux上編譯dotnetcli的源代碼生成.NETCoreSDK的安裝包
轉(zhuǎn)載源于:http://www.chinadenli.net/article44/gsjehe.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供自適應(yīng)網(wǎng)站、外貿(mào)建站、靜態(tài)網(wǎng)站、App開發(fā)、定制開發(fā)、企業(yè)網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)