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

Web Development Myths On Microsoft Edge

Microsoft Edge is definitely a Modern Browser which renders HTML5 Web Standards, technically similar to IE11, Chrome, Firefox, Opera and Safari browsers. However, Microsoft Edge is very different with other browsers since there is no such as BHO (Browser Helper Object) or can run ActiveX components and Plugins. It may have extensions soon but that is not what I’m going to share on this article.
Read More

Mitos Pengembangan Web di Microsoft Edge (Bahasa Indonesia Edition)

If you are looking for the English Version: Web Development Myths On Microsoft Edge

(Language: Bahasa Indonesia)

Microsoft Edge sudah tentu merupakan Browser modern untuk menggunakan HTML5 Standar Web, secara teknis mirip dengan browser IE11 (Internet Explorer 11), Chrome, Firefox, Opera dan Safari. Namun, Microsoft Edge sangat berbeda dengan browser lain, sebagai contoh tidak ada support untuk BHO (Browser Helper Object) atau dukungan (support) untuk menjalankan komponen ActiveX serta Plugin. Mungkin dalam masa yang dekat akan memiliki support untuk browser extensions, namun didalam artikel ini saya tidak ingin membahas masalah tersebut.
Read More

WordPress in Azure | Part 1 – Create WordPress Blog in less than 5 minutes (Cloud PaaS)

There are several ways to create WordPress in Microsoft Azure cloud, using PaaS (Platform as a Service) and IaaS (Infrastructure as a Service). I would like to share how I did it as a guide and show you how easy to create WordPress blog in Microsoft Azure using the cloud PaaS first. Cloud PaaS means that you only manage the application and the database. Azure PaaS is part of the Azure App Services and has the feature of elastic auto scaling, meaning you can configure the web app to automatically increases or decreases the server instances as required due to high or low traffic or by CPU performance needs. Therefore, you also only pay on what you use. In PaaS, the server infrastructure, networks, the middle-ware, the frameworks, etc. are all maintain by Azure app services. Since we only maintain the application and database, practically you can create WordPress web app in less than 5 minutes.

Well, 5 minutes is if you at least already know little bit about Azure or at least know some of the steps. But hey, I tested myself, I can create in less than 5 minutes with the condition that you already prepare for what you are going to enter, like the web app name, database name, site title, password, etc. If you are still thinking on what to enter on every step, than I believe the time will be more than 5 minutes.

Okay, this are the first title from four parts article. Here is the four title that I will create:

  1. WordPress in Azure | Part 1 – Create WordPress Blog in less than 5 minutes (Cloud PaaS)
  2. WordPress in Azure | Part 2 – Editing the WordPress PHP code using Git
  3. WordPress in Azure | Part 3 – Managing (Backup and Restore) WordPress MySQL Database
  4. WordPress in Azure | Part 4 – Configure Auto Scaling in Azure Web App

Read More