1Gig-Tech (#41) – Xamarin, UWP, AzureAD, MSTest

September 12, 2016 1Gig Tech , , ,

Welcome to 1Gig Tech update!

In today’s edition, there are 4 articles on technology, news, open source, community on the fantastic and ever evolving technology world.

  • UWP OAuth in Xamarin Forms using Xamarin.Auth
    There is an excellent Xamarin plugin, called Xamarin.Auth which lets you do the OAuth dance for iOS and Android Xamarin Forms apps, but even in the latest branch, I couldn’t get it working on the Universal Windows Platform (UWP) app.

You can also follow these updates on Facebook Page or can also read previous editions at 1Gig Tech


1Gig-Tech (#27) – Roslyn, SQLServer, Linux, Xamarin, TFS

March 13, 2016 1Gig Tech , , , ,

Welcome to 1Gig Tech update!

In today’s edition, there are 12 articles on technology, news, open source, community on the fantastic and ever evolving technology world.

  • A Quick Primer on Microservices (Omed Habib)
    Martin Fowler’s “Microservices – a Definition of This New Architectural Term” is one of the seminal publications on microservices. He describes some of the key characteristics of microservices as: Componentization: Microservices are independent units that are easily replaced or upgraded.
  • Performance Tuning Apache Storm at Keen IO (Peter Nachbaur)
    Hi, I’m Manu Mahajan and I’m a software engineer with Keen IO’s Platform team. Over the past year I’ve focused on improving our query performance and scalability. I wanted to share some things we’ve learned from this experience in a series of posts.
  • How We Build Code at Netflix (Mike McGarr)
    How does Netflix build code before it’s deployed to the cloud? While pieces of this story have been told in the past, we decided it was time we shared more details.
  • Experimental .NET Core Debugging in VS Code (Andrew B Hall)
    Today we are releasing our first experimental preview of debugging for the new ASP.NET Core CLI toolset in Visual Studio Code. Before I continue it’s important to note a few things: With this first release you get breakpoints, stepping, variable inspection, and call stacks.
  • Microsoft/team-explorer-everywhere
    This project contains the Team Explorer Everywhere Plug-in for Eclipse, the cross-platform Command-line Client for Team Foundation Server, and the Team Foundation Server SDK for Java. Team Explorer Everywhere is the official TFS plug-in for Eclipse from Microsoft.
  • Announcing SQL Server on Linux (Scott Guthrie)
    It’s been an incredible year for the data business at Microsoft and an incredible year for data across the industry. This Thursday at our Data Driven event in New York, we will kick off a wave of launch activities for SQL Server 2016 with general availability later this year.
  • AllAboutXamarin.com
    The latest tips, tutorials, news, and resources for Xamarin app developers. Powered by Dan Rigby and the Xamarin developer community.

You can also follow these updates on Facebook Page or can also read previous editions at 1Gig Tech


1Gig-Tech #2 – ASP.NET, Win10, Office 2016, Xamarin, ElasticSearch

July 11, 2015 1Gig Tech , , , ,

Welcome to 1Gig Tech for 11 Jul, 2015!

In today’s edition, there are 15 articles on technology, news, open source, community on the fantastic and ever evolving technology world.

  • Deploying ASP.NET 5 application to Azure Web App with Git
    I haven’t found any official docs about publishing ASP.NET 5 applications to Azure using source control (continuous deployment), but I thought I’ll give it a try. I failed at first and I asked whether it’s even possible on Twitter: Hi @michaldudak that’s a very good question.
  • react-ui-builder
    This tool is a visual builder of React JS components for your web application. In builder you can easily combine available components with each other, and see how they look and feel right on a web page.
  • Don’t Waste Time On Cross Browser Testing
    Browsers Mobile Simulators Reporting Side By Side Find cross-browser issues in minutes Easily switch between all major desktop browsers You don’t need more than 5 minutes to test any website in all major desktop browsers. Anytime all browsers are just 1 click away.
  • Build native iOS, Android and Mac apps in C#
    Mobile development skills are in demand, and Xamarin for Students gives you an edge over the competition. With Xamarin for Students, you can build native iOS, Android, and Windows apps with Xamarin Studio and Visual Studio, for free.
  • Installing Windows 10: A pictorial walkthrough (Ng Chong Seng)
    With Windows 10 for PCs and tablets due end of this month, and the fact that Microsoft is pushing out preview builds left, right, and center recently, we thought it’s time to revisit the installation process to see how it differs from previous versions of Windows and the early WIndows 10 builds.
  • Windows Server 2003 Migration Resources! (Jeffadude)
    It’s hard to believe that it’s been 12 years since we released Windows Server 2003! On March 28th 2003 I received a ship-it award for the role I played in helping to make Windows Server 2003 ready for enterprise customers.

You can also follow these updates on Facebook Page or can also read previous editions at 1Gig Tech

Punit Ganshani

Universal Application and Xamarin Development – Session

February 23, 2015 Sessions , , ,

As a part of March Singapore .NET Meetup, you can expect to learn on some of the hot topics like Client Server Code, ASP.NET MVC, Windows Universal Application Development and WPF. The detailed agenda is as per,

  • Secure Client-Server code by Lawrence Hughes
  • Basic ASP.NET MVC for beginners by Dawa Law
  • Windows Universal App
    Development by Punit Ganshani
  • Smart auto complete in WPF, by Riza
  • How to use Azure SQL Database using .NET by Riza

I will be speaking on developing Universal Applications and will cover 3 platforms – Windows 8.1, Windows Phone 8.1 and Android using Xamarin

Location:     Microsoft Singapore
Date and Time:    3 March, 7:00 PM to 9:00 PM

You can RSVP on the Meetup Event Site

Xamarin, Visual Studio 2015 Preview, Android Development and Emulators

November 19, 2014 Android, Visual Studio, Xamarin , , , , ,

Well, this post is inspired to help a close friend of mine who was struggling to get Xamarin run on Visual Studio 2015 Preview and develop some Xamarin application on Android platform. So I though I will give myself a try with Xamarin on this version of Visual Studio.

Clean Start


I believe in clean start, so if you have any versions of Xamarin installed you should uninstall them. I had a version installed for my Visual Studio 2013 Ultimate Edition and I uninstalled Xamarin. I had to uninstall Xamarin Universal Installer, Xamarin Studio and Xamarin. Give your machine a restart to ensure no pending uninstallations exist.

You don’t need to uninstall Visual Studio 2013 or any other editions you have on your machine.

Creating your Android Project


Open up your Visual Studio 2015 Preview and create a new Project (File > New Project). You will see 2 different templates i.e. Android and iOS.

Select Build native Android apps in C#. Once the new project is created (takes approx. <1 min), you will be prompted with a screen from where you can download Xamarin

Since you don’t have version of Xamarin on your machine, I would recommend downloading Xamarin. If you have any subscription of Xamarin, you can use that subscription. The installer XamarinInstaller-VS2015.exe is of 1.9 MB approx. Remember to close all instances of Visual Studio before going ahead.

If you have gone through Secondary Installation on Visual Studio, probably Xamarin will detect Android SDK like,

It took 4-5 minutes for me for Xamarin Installer to download and install all required components. The official documentation of Xamarin 3.9 that supports Visual Studio 2015 is available at Documentation

After the completion of installation, your Visual Studio New Project dialog will have more templates as shown below

So let’s create a blank Android Application. For the purpose of this post, I will leave the project with default code.

Building the Android App


The first error on build is a resource error

Show Severity Code Description Project File Line
Error Access to the path ‘resources.apk.bk’ is denied. App1

This is typically caused when your Android compilation and Android Emulator have version incompatibility.

To resolve this, right click on Project > Project Properties. Check the Compile using Android version it should be less or equal then your Android API version.
I changed my project settings as shown below

Running the Android App on Mono Emulator


I opened up the Android Virtual Device Manager (Visual Studio, Tools > Android > Open Android Emulator Manager) and saw that there are only 2 Virtual Devices using platform 10 and 12 while I was using version 19.

So if you are not using anything specific to v19 (KitKat), you could downgrade your versions 12 or 10 in the project properties and use the emulator MonoForAndroid_API_12 and run the application to see something like

If you want to use v19, you need to perform some additional steps. You need to open up Android SDK Manager (Visual Studio, Tools > Android > Start Android SDK Manager) and download System Images as shown below

Once this is installed, you can create your new AVD with configuration shown below. This AVD will be stored at C:\Users\%username%\.android\avd


As soon as you create the AVD, Visual Studio 2015 will detect it and show in the Run option

The build may take some time, especially the installation of Mono shared runtime

Assuming that you have set the API properties correctly in Visual Studio when you build your Visual Studio solution for VS Emulator, you may hit another build error which is totally cryptic.

1>Starting emulator: VS Emulator Android Phone

1>Emulator start error: VS Emulator Android Phone

Build has been canceled.

Now this does not provide much detail but the solution to this problem lays in the fact that VS Emulator Android Phone requires Hyper-V Platform to be enabled. There are enough posts on the Internet to enable Hyper-V on Windows 8.1. This should resolve this error for you.

Once Hyper-V is installed, you can open up Hyper-V Manager. You will not see any Virtual Machines in the console but you should be good to start the build and deploy on VS Emulator Android Phone. Your application will appear as shown below

The build & deployment with VS Emulator is much faster (thanks to Hyper-V). When the application is running, you can check CPU and Memory usage in Hyper-V Manager. Note that this CPU usage and Memory for your Emulator (in this case a VM) and not for your application.

As visible in the images, the emulator supports high resolution and has been designed to even support Hi-Res. So this is much easier & elegant way of using emulator than using Mono emulators.

If you face any issues, do comment here..

Follow on Feedly