Visual Studio for Mac で Xamarin 入門しました

Visual Studio for Mac で Xamarin 入門しました

potatotips #41 の発表資料です。
https://twitter.com/kumamo_tone

参考リンク

page5

What is the difference between Xamarin Studio for Mac and Visual Studio for Mac - Stack Overflow
https://stackoverflow.com/questions/42460752/what-is-the-difference-between-xamarin-studio-for-mac-and-visual-studio-for-mac

Visual Studio for MacのインストールとProfessionalエディション以上にする方法 | RIALAB.
http://www.ria-lab.com/archives/1158

Edit Visual Studio for Mac で Xamarin 入門しました // Speaker Deck
https://speakerdeck.com/kumamotone/visual-studio-for-mac-de-xamarin-ru-men-simasita/edit

page 6

Visual Studio for Mac: now generally available | The Visual Studio Blog
https://blogs.msdn.microsoft.com/visualstudio/2017/05/10/visual-studio-for-mac-now-generally-available/

Announcing the new Visual Studio for Mac | The Visual Studio Blog
https://blogs.msdn.microsoft.com/visualstudio/2016/11/16/visual-studio-for-mac/

page 7

Releases · nosami/XSVim
https://github.com/nosami/XSVim/releases

page 12

Xamarinエキスパート養成読本 (Software Design plus)
https://www.amazon.co.jp/dp/B06XYL4HF5/

かずきのXamarin.Forms入門
https://www.amazon.co.jp/dp/B01N7NI08L/

page 13

Guides - Xamarin
https://developer.xamarin.com/guides/

Xamarinをこれから始める皆様へ
https://www.slideshare.net/ytabuchi/xamarin-73530180

実際Xamarinってどうなの? // Speaker Deck
https://speakerdeck.com/koutalou/shi-ji-xamarintutedounafalse

Xamarin逆引きTips - Build Insider
http://www.buildinsider.net/mobile/xamarintips

page 15

Xamarin Workbooks とかいうやつ - Qiita
http://qiita.com/amay077/items/11255f6bafa53f1dd5d1

266af7918931b0ea15eae9e8f42ecfa6?s=128

kumamotone

June 19, 2017
Tweet

Transcript

  1. Visual Studio for MacͰ Xamarinೖ໳͠·ͨ͠ 2017/06/19 potatotips #41 twitter.com/kumamo_tone qiita.com/kumamotone

    github.com/kumamotone
  2. ۽ຊ ࿨ਖ਼ (@kumamo_tone) • iOSΤϯδχΞˏYahoo! JAPAN • CAMPFIRE iOS ओ࠻

    • ࢲ༻PC: Windowsɹࢲ༻ܞଳ: Android • ֶੜ࣌୅͸C#/WPFͰόΠτͱ͔ͯ͠·ͨ͠ • Swift ͕޷͖ ʮ͜ͷΞΠίϯ͸ ΦλϚτʔϯʹΫϚΛ͚ͭͨ΋ͷͰ͢ʯ ͱઆ໌͢Δ౓ʹͳ͔ͳ͔఻ΘΒͳ͍
  3. ͜ͷࢿྉ • Visual Studio for Mac ਖ਼ࣜϦϦʔεΛػʹ Xamarin ೖ໳ͨ͠࿩ •

    ͱʹ͔͘৘ใ͕গͳ͍ͷͰiOSΤϯδχΞ໨ઢͰ·ͱΊΑ͏ͱࢥͬͨ • ҎԼͷ঺հͱײ૝ • Visual Studio for Mac • Xamarin • Xamarin Workbooks
  4. Visual Studio for Mac

  5. Visual Studio for Mac • 2017/05/12 ਖ਼ࣜϦϦʔε • Xamarin Studio

    (MonoDevelop) ͱ΄΅ಉ͡ *1 • viϞʔυ΍InspectorͳͲফ͍͑ͯΔཁૉ΋͋Δʁ • 2016೥3݄ʹMicrosoft͕XamarinࣾΛങऩͯ͠ແྉͰར༻Մೳʹͳͬͨ • Community(ແྉ) / Professional / Enterprise ͷ3όʔδϣϯ
 ܖ໿ࡁΈͳΒ for Mac ΋ Windows ൛ͱಉ༷ʹΞοϓσʔτՄೳ*3 * 1 https://stackoverflow.com/questions/42460752/what-is-the-difference-between-xamarin-studio-for-mac-and-visual-studio-for-mac *2 http://www.ria-lab.com/archives/1158 *3 https://www.visualstudio.com/ja/vs/compare/
  6. Visual Studio for Mac • C#7, F# • IntelliSense (ίʔυิ׬)

    • Roslyn (ίϯύΠϥ) • NuGet.org (ϥΠϒϥϦ) • Xamarin Ҏ֎ʹ΋࢖͑Δ* • ASP.NET Core / Visual Studio Tools for Unity • ϒϨʔΫϙΠϯτுͬͯσόοάͰ͖Δ * https://blogs.msdn.microsoft.com/visualstudio/2016/11/16/visual-studio-for-mac/ * https://blogs.msdn.microsoft.com/visualstudio/2017/05/10/visual-studio-for-mac-now-generally-available/
  7. ྑ͍఺ɾؾʹͳͬͨ఺ • Good • ࢖͍΍͍͢ɹγϣʔτΧοτΩʔ͸Mac෩ • ࠷ॳ͔Βྑ͛͞ͳΧϥʔεΩʔϜ͕͋Δ • ࠷ॳ͔Βྑ͛͞ͳײ͡ʹ೔ຊޠԽ •

    Bad • XAMLΤσΟλʢޙड़ʣ • vimode͕ͳ͍* * Extension͸͋ΔΒ͍͠ https://github.com/nosami/XSVim/releases
  8. Xamarin

  9. Xamarin • iOS, Android, macOS, watchOS ωΠςΟϒΞϓϦ͕C#Ͱॻ͚Δ • Windows൛͸Windows Store

    / Windows Phone / UWP ΋ • Xamarin.Forms or Native • ϏϡʔΛC#/XAMLͰॻ͍ͯڞ௨Խ͢Δ͔ɺ֤ʑ࡞Δ͔બ΂Δ ڞ௨ίʔυ Windows Android iOS
  10. C# • JavaͬΆ͔͕ͬͨɺόʔδϣϯΞοϓʹ൐͍Ϟμϯײ͕ग़͖ͯͨݴޠ • ϥϜμࣜɺLINQɺasync/await • ҩྍܥͷΞϓϦ΍UnityͰΑ͘࢖ΘΕ͍ͯΔҹ৅ • Swift ʹࣅ͍ͯΔ෦෼ׂ͕Γͱ͋Δ

    • extensionͰϝιου΍computed property Λ֦ுͰ͖Δ • ?? ͕ nil ߹ମԋࢉࢠ • enum, struct ͕஋ܕɺΠϯσΫαɺࢀর౉͠ɺσϑΥϧτҾ਺
  11. ࢖ͬͨײ૝ • LINQ, async/await, XAML / MVVM ͕ྑ͍ • ಛʹ

    async/await Ͱ௨৴෦෼ॻ͘ͱ͔ͳΓ͖ͬ͢Γͨ͠ • XAMLΤσΟλʹؔͯ͠͸ɺϓϨϏϡʔ͸Ͱ͖Δ΋ͷͷ
 खॻ͖͠ͳ͍ͱ͍͚ͳ͍ͷͰͦ͜͸ͭΒ͍ɹࠓޙʹظ଴ • αʔόʔαΠυ΋C#Ͱॻ͚Δͱྑͦ͞͏ • Server-Side Swift ΋ྑ͘ͳ͖͍ͬͯͯΔͷͰ
 ༏Ґੑ͸ࣦΘΕͭͭ͋Δ͔΋
  12. ͓͢͢Ίॻ੶ • XamarinΤΩεύʔτཆ੒ಡຊ (Software Design plus) 2017/3/25 • ͔͖ͣͷXamarin.Formsೖ໳ 2016/12/30

    *2 https://www.amazon.co.jp/dp/B01N7NI08L/ *1 https://www.amazon.co.jp/dp/B06XYL4HF5/
  13. ͓͢͢ΊWebࢿྉ • ެࣜΨΠυ *1 • XamarinΛ͜Ε͔Β࢝ΊΔօ༷΁*2 • ࣮ࡍXamarinͬͯͲ͏ͳͷʁ*3 • XamarinٯҾ͖Tips

    - Build Insider *4 *3 https://speakerdeck.com/koutalou/shi-ji-xamarintutedounafalse *2 https://www.slideshare.net/ytabuchi/xamarin-73530180 *4 http://www.buildinsider.net/mobile/xamarintips *1 https://developer.xamarin.com/guides/
  14. Xamarin Workbooks

  15. Xamarin Workbooks • Markdown ͰυΩϡϝϯτ͕ॻ͚Δ • ``csharpʙ```Ͱғ·ΕͨίʔυϒϩοΫΛ
 γϛϡϨʔλͰΠϯλϥΫςΟϒʹ࣮ߦͰ͖Δ • Jupyter

    NotebookͬΆ͍ • Rx.playgroundΛ૝ىͤ͞Δ͕
 ͞ΒʹΠϯλϥΫςΟϒͳײ͡ * http://qiita.com/amay077/items/11255f6bafa53f1dd5d1
  16. DEMO

  17. ·ͱΊ

  18. ·ͱΊ • 2016೥ʹແྉԽ͔ͯ͠Β৘ใ͕૿͖͍͑ͯͯΔ • Visual Studio for Macɹ…ɹ࠷ॳ͔Β࢖͍΍͍͢ • Xamarinɹ…ɹC#,

    LINQ, async/await ͕࢖͑ͯྑ͍ɹ Xamarin.Form ࣗମ͸ྑ͍͕GUIΤσΟλ͕ແ͍ͷͰؾ߹͕ඞཁ • Xamarin Workbooksɹ…ɹPlaygroundҎ্ʹΠϯλϥΫςΟϒ