6. 先來建置個可除錯版的XAMARIN.FORMS
如何包Nuget套件?
Building the Xamarin.Forms NuGet:
http://bit.ly/2GQbboU
講git clone下來,用Visual Studio build,
根目錄有提供一個批次檔跑下去就有除
錯版的Nuget套件了~
Xamarin Forms專案怎build
A Beginner’s Guide for Contributing to
Xamarin.Forms:
http://bit.ly/2ouJMBU
講專案架構目錄裡面的結構
7. 建置可除錯版的
XAMARIN.FORMS套件
實際上會碰到的坑(沒雷才有鬼😒):
1. 原始碼有使用一個CI Server在使用的git
submodule repo設定,但沒放到github上:
http://github.com/xamarin/Xamarin.Forms/issu
es/1605
用sourcetree一直會顯示找不到該submodule而
失敗,建議用指令列抓目前正式釋出版tag:
2. Visual Studio 2017沒辦法包出原本Nuget spec設
定檔所含的WinRT, Windows 8.1, Windows
Phone的專案產出dll,需要手動修
改.nuspec/Xamarin.Forms.nuspec檔案,修該
內容可參考: http://bit.ly/2FazXTr 。
3. Windows 10的SDK須安裝最早期10240正式版,
而且UWP平台的可能因為是專案包裝app佈署檔
案的設定錯誤,實際上還是無法追進Xamarin。
能在Visual Studio 2017 中建置可除錯
版Nuget的分支:
http://bit.ly/2FGn3up
git clone -b release-2.5.0-sr5 https://github.com/xamarin/Xamarin.Forms.git