Creating Chat Bot using 100% ASP.NET Core 2.0 Web API and Microsoft Bot Framework

Bot Application with BotBuilder SDK

To create a chat bot application using .NET Framework, you might already know this type of Bot Application template when launching new project in Visual Studio 2017.

The problem is, the NuGet packages and the template project which is from the BotBuilder SDK currently only support .NET Framework 4.6 and above as stated on the page and not yet supporting .NET Core related. Here is the message from the docs page:

https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-overview

Read More

Using Autofac DI/IoC Container in Xamarin.Forms iOS & Android Mobile Apps

UPDATE (October 27, 2017)

Added MobileClient.UWP Project that support for Windows 10 Fall Creators Update, Build 16299.15. Here is the reference on .csproj for the UWP project:

I have updated the source code on GitHub as well. Enjoy!

On Windows 10 Fall Creators Update:

 

On Android:

 

Below is the video on Youtube, showing how to use Autofac DI/IoC Container in Xamarin.Forms iOS & Android Mobile Apps. Just easy and simple.

Source Code:
https://github.com/rizamarhaban/XamarinAutofac

Enjoy!

Real-Time Android and iOS Apps using SignalR Core (ASP.NET Core 2.0)

Last year I tried and make an article on Windows 10 UWP app for Desktop and Windows Mobile (a.k.a. Windows Phone) to work with ASP.NET Core SignalR (the early version). As currently the ASP.NET Core team released the SignalR Core 1.0.0-alpha1-final and the .NET team has released the remarkable and awesome .NET Core 2.0, .NET Standard 2.0 and the latest Xamarin 2.4.0 that is compatible with .NET Standard 2.0, I would like to try this in Xamarin mobile apps that is for Android and iOS.

It turn out awesome and I love it. The demo that I created is a very simple UI (User Interface) of Label and Slider controls. Project on the solution:

 

Real-time hub API SignalR Core 1.0.0-alpha1-final ASP.NET Core 2.0
Mobile Client
(Android and iOS)
Xamarin.Forms Xamarin 2.4.0
.NET Standard 2.0

Tools that I use for building this project:

Dev Tools/IDE Visual Studio 2017 (Preview) Version 15.4 Preview 3.0
Hosting (Web App) Microsoft Azure App Services

And here is what you will get from this experiment.

Here is the link to the entire solution on my GitHub.

https://github.com/rizamarhaban/xamarinsignalrcore

Read More

Hey… what went wrong with Windows 10 UWP project templates – Package Restore Failed

Recently I just updated my development tools, the lovely Visual Studio 2017 version 15.4 from Preview 1 to Preview 2. And I wanted to create demo sample using Windows 10 UWP app project.

Visual Studio 2017 version 15.4 Preview 2

Everything works normally, until I wanted to create a new UWP app project. And here is what happen when I create a new UWP app using blank project template. Read More

ASP.NET Core SignalR for Windows 10 UWP App

It has been quite sometimes I have not use ASP.NET SignalR. As you may know that currently we can use ASP.NET Core for creating WebAPI, it come to my mind to try SignalR service using ASP.NET Core and with Windows 10 UWP as the client for consuming the SignalR service. This blog is about just that, I divide the project into two, that is the SignalR service server and SignalR client which is inside Windows 10 UWP app. So let’s start.

SignalR Service Server

Let’s begin with creating the ASP.NET Core project, fire up Visual Studio 2015 with — of course .NET Core installed.

ASP.Net Core Create New Project

Once created, open the project.json file or Right-Click the References on the Solution Explorer and choose Manage NuGet packages and add the SignalR package library.

Read More

MonoGame UAP for Universal Windows Platform (Windows 10 Build 10240)

THE GAME BEGINS

Recently I updated my Windows 10 to the latest Build 10240 and I wanted to create my own game framework leveraging the powerful Win2D which is open source from Microsoft and I was thinking, hmm… why not find see the existing game framework first. And yes, it remind me to my experience using XNA which is, well “not available” anymore. So I turn to MonoGame, yes… one of the best open source game framework. And so I did, I download the latest MonoGame 3.4.

Perfect! right… By the way, I’m using Visual Studio 2015 (Enterprise), you can also install MonoGame 3.4 for Visual Studio Community 2015 which is free for developers. Once, installed, I directly see the Project Templates ( yay! very excited ).

MonoGame 3.4 Windows 10 UAP Project Templates
Read More