James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


Twitter


James Montemagno

Visual Studio

New Plugin for Xamarin & Multi-Target Templates for Visual Studio 2017

It is 2018 and I am all in on Multi-Target projects for building libraries and plugins. I love them so much that I convinced Frank to record a full episode of Merge Conflict on why this whole thing is so absolutely amazing. I have slowly been converting all of my plugins over to mutli-targeted projects, which has reduced some of the solutions from 15 project down to 1!!! There is a bit of tiny setup required for multi-targeting and for it to automatically pump out the NuGet package for you,…

James MontemagnoJames Montemagno

How to Convert a Portable Class Library to .NET Standard and Keep Git History

I have had a lot of developers telling me that they have wanted to switch to .NET Standard Libraries, but that they are worried about losing git history. I have also heard fears of compatibility with existing packages. Do not fear! It is so simple to switch over to .NET Standard and takes minutes! Why .NET Standard 2.0 There is simply no reason not to be using .NET Standard 2.0 at this point (you can still target 1.4 if you need older UWP support, but just do 2.0!). It supports all of your favor…

James MontemagnoJames Montemagno

Paste JSON as Code with quicktype.io in Visual Studio

quicktype! Yes that quicktype that I blogged about late last year on how to convert JSON to C# classes in the browser. I am back talking about it again because they have made tons of great enhancements and just today released a new extension for Visual Studio 2017! I should mention here that all of this is FREE. Watch Now, Questions Later Want to see it in action? Checkout my short video overview: Doesn't VS Do This? It is true that Visual Studio has a Paste JSON as Classes feature, but it basic…

James MontemagnoJames Montemagno

Xamarin Live Player - VS 2017 version 15.4 & 15.5 Awesomeness

Last week Visual Studio 2017 version 15.4 and VS for Mac 7.2 were released into the stable channel. They include the very first release of the Xamarin Live Player capabilities in Visual Studios. This means you can simply update Visual Studio, turn on Xamarin Live Player (Preview), and get started visualizing your mobile apps with nothing more than VS and your iOS or Android device! Whenever there is a stable release a new preview release of Visual Studio is not far behind. That is right, VS 2017…

James MontemagnoJames Montemagno

My Favorite C# 7 Feature: More expression-bodied members

I can’t help myself, I love Expression-Bodied Members from C# 6! Combined with other powerful C# features it took this code: public void OnPropertyChanged(string name) { var changed = PropertyChanged; if(changed == null) return; changed(this, new PropertyChangedEventArgs(name)); } to this: public void OnPropertyChanged(string name)=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name)); This is amazing! However, in C# 7 things get even better. Take our good old fr…

James MontemagnoJames Montemagno

Setting up Visual Studio 2017 for Xamarin Development

Visual Studio 2017 was just released yesterday, and it is awesome! You can re-live all the keynote and demo deep dives on Channel 9. There are tons of new features and a huge revamp to installation but things to me still aren’t absolutely perfect in the setup of how I like to develop. So in the spirit of my Cycle 8 and Cycle 9 installation guides I am proud to bring you the ultimate VS 2017 Setup Guide for Xamarin! InstallationThe installation is brand new and pretty awesome. You now pick “w…

James MontemagnoJames Montemagno

New Xamarin.Forms Item Templates!!

I just installed the latest RC for Cycle 9 and was extremely surprised and happy to find some brand new Item Templates for Xamarin.Forms including:Carousel PageList View PageMap PageTabbed PageAlong with the awesome new project template creation! When you add a page it will scaffold out your entire ViewModel too!!! Amazing! Just by adding the ListView Page you get this: (adsbygoogle = window.adsbygoogle || []).push({}); New Tabbed Page: I did a little Motz Codes Live walkthrough, check it o…

James MontemagnoJames Montemagno

Visual Studio - Unable to launch Google Android Emulators

When developing with Xamarin in Visual Studio you have a lot of options for Android Emulators. You can go with the VS Emulators for Android powered by Hyper-V, Genymotion, or the out of the box x86 HAXM powered Android Emulators from Google (a few are installed for you already). It looks though that with some of the latest updates to Windows and VS when you go to launch them you get an error message that they can’t be launched. If you look at the logs you will see something like this: Error mess…

James MontemagnoJames Montemagno

I crush code and share it, publish NuGet packages, speak at conferences, upload videos, pretend I am good at playing video games, micro blog, tweet up a storm, drink gallons of coffee, and ride my bike. Checkout my monthly newsletter that you should subscribe to!