weixin_39537397
weixin_39537397
2021-01-09 02:17

Create Visual Studio and Xamarin Studio project templates

To ease creating a new MvvmCross project it would be really awesome just using an online template in VS or XS which creates a new solution with everything set up ready for you to work on.

So a template that looks something like:

Core Droid iOS Store 8.1 (Windows Phone + Windows) WPF UWP

该提问来源于开源项目:MvvmCross/MvvmCross

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

15条回答

  • weixin_39725924 weixin_39725924 4月前

    I'm starting to take a look at the VS templates

    点赞 评论 复制链接分享
  • weixin_39664998 weixin_39664998 4月前

    If you are interested, I have already created something like this for Xamarin Forms( only for iOS, Android and UWP). You can have a look at it here: https://github.com/CherechesC/XamFormsMvxTemplate

    点赞 评论 复制链接分享
  • weixin_39725924 weixin_39725924 4月前
    • thanks, will take a look.
    点赞 评论 复制链接分享
  • weixin_39693950 weixin_39693950 4月前

    Supporting (as in, upgrading stuff, etc.) VS templates is a major pain in the ass. I do this for a project in my company and I regret every line I have to change in a text editor. I usually just clone a base working project (which can be easily updated) and rename stuff.

    That being said, instead of the template, what I propose is a sample with all the boilerplate stuff done and scripts to rename things.

    点赞 评论 复制链接分享
  • weixin_39725924 weixin_39725924 4月前

    VS template is done:

    https://github.com/jimbobbennett/MvvmCross-VisualStudioAddIn

    VSIX is available as a preview release:

    https://github.com/jimbobbennett/MvvmCross-VisualStudioAddIn/releases

    Can someone review it and if it's ok let me know how I can transfer the repo over to the MVVMCross repos.

    点赞 评论 复制链接分享
  • weixin_39620535 weixin_39620535 4月前

    Everyone, you may want to check out NinjaCoderForMvvmCross

    https://visualstudiogallery.msdn.microsoft.com/e66eddef-d1b7-452d-94db-0689ae2d114b

    https://github.com/asudbury/NinjaCoderForMvvmCross

    I've been using this for a few years, it "just works" when setting up a new project, adding all the nuget packages, project links, adding View Models, etc.

    点赞 评论 复制链接分享
  • weixin_39913141 weixin_39913141 4月前

    I was just going to recommend 's NinjaCoder, too.

    点赞 评论 复制链接分享
  • weixin_39537397 weixin_39537397 4月前

    That doesn't solve templates in Xamarin Studio. Also NinjaCoder does much, much more than just providing startup templates.

    点赞 评论 复制链接分享
  • weixin_39725924 weixin_39725924 4月前

    The VSIX I've created just creates a solution that has an iOS, Android UWP, Win 8.1, Win Phone 8.1 and WPF project that does the same as the starter pack - simple app, Hello MVVMCross in a text box and label.

    I've also started on a Xamarin Studio add-in, but it's slow going as there is not much documentation.

    点赞 评论 复制链接分享
  • weixin_39626298 weixin_39626298 4月前

    all useful documentation links: - MonoDevelop articles - MonoDevelop API overview - Extending Xamarin Studio with Add-Ins - but most useful for me was D Add-In for MonoDevelop

    Starting next week, I can help with the development, if you upload a project on GitHub

    点赞 评论 复制链接分享
  • weixin_39725924 weixin_39725924 4月前

    Thanks for those links, found a few useful ones myself that have got me going. I've almost got the 'droid and Core working. Just got an issue with png files being screwed up.

    Code is at https://github.com/jimbobbennett/MVVMCross.XSAddIn

    Will keep on chipping away at it and see how far I get.

    点赞 评论 复制链接分享
  • weixin_39725924 weixin_39725924 4月前

    Xamarin Studio add-in first cut done. It supports iOS and Android only so far. The code and a pre-release mpack is on my github.

    https://github.com/jimbobbennett/MVVMCross.XSAddIn

    Let me know any feedback. I can hand the repo over if you want it, and will try to get it in the add-ins gallery soon.

    点赞 评论 复制链接分享
  • weixin_39955781 weixin_39955781 4月前

    Hi! You mentioned you found few useful links yourself, do you mind sharing those? I'm trying to learn how to create project templates too.. Thanks!

    点赞 评论 复制链接分享
  • weixin_39683163 weixin_39683163 4月前

    Thanks ! I think we can close this isse since the add-in is in the gallery!

    点赞 评论 复制链接分享
  • weixin_39725924 weixin_39725924 4月前

    VS add-in now available in the gallery.

    https://visualstudiogallery.msdn.microsoft.com/96b3d919-0277-4f63-92a3-a7bf3e7cd384?SRC=Home

    Do you want me to transfer ownership of my repos? If so what do I need to do?

    点赞 评论 复制链接分享

相关推荐