How to host your ASP.NET Core in a Windows Service

Posted by Anuraj on Saturday, June 11, 2016 Reading time :2 minutes

C# ASP.NET ASP.NET Core Windows Service

This post is to about hosting your ASP.NET Core application as Windows Service. This implementation is not relevent on dotnet core, since Windows service feature is only available on Windows. First you need reference of “Microsoft.AspNetCore.Hosting” and “Microsoft.AspNetCore.Hosting.WindowsServices” in the project.json file.

Creating your first ASP.NET Core Web API with Swashbuckle

Posted by Anuraj on Saturday, June 11, 2016 Reading time :1 minute

C# ASP.NET ASP.NET Core Documentation Swashbuckle

This post is to help developers on how to create interactive interface which represent their Restful API to provide a rich discovery, documentation and playground experience to their API consumers in ASP.NET Core Web API. First you need to create an ASP.NET Core web api project. In this post I am using the default project; I didn’t modified any code. Once you created the project you need add reference of Swashbuckle. For RC2 you need to add reference of 6.0.0-beta9 version.

Unit test ASP.NET Core Applications with MSTest

Posted by Anuraj on Tuesday, June 7, 2016 Reading time :1 minute

C# ASP.NET ASP.NET Core Unit Testing MS Test

This post is about running aspnet core unit tests with MS Test. Few days back Microsoft announced support of MS Test for ASP.NET Core RC2 applications. And MS released two nuget packages to support the development as well as tooling. Similar to XUnit, MS Test also require reference of MS Test Framework and tool to run the unit tests aka Test Runner. So in the project.json file add reference of “dotnet-test-mstest”, which the test runner and “MSTest.TestFramework” is the framework.

Using ASP.NET Core RC2 in Appveyor

Posted by Anuraj on Tuesday, June 7, 2016 Reading time :1 minute

C# ASP.NET ASP.NET Core Appveyor Continuous Integration

This post is about using ASP.NET Core RC2 in Appveyor for Continuous Integration. Recently Microsoft released RC2 version of ASP.NET Core. But for Windows OS, there is an installer exe available.(Unlike DNX there is not commandline / powershell install options.) In this post I am downloading the binaries and extracting to the location.

UI Automation for your Universal(UWP) apps with Appium

Posted by Anuraj on Friday, June 3, 2016 Reading time :2 minutes

C# XUnit UWP Appium Testing UI Automation

This post is about how to implement UI Automation for your Universal(UWP) apps with Appium. Appium is an open source test automation framework for use with native, hybrid and mobile web apps. It drives iOS and Android apps using the WebDriver protocol. To start first you need to download the WinAppDriver.exe, you can download it from the GitHub repository. Download it and install it. Once installation completed, run the WinAppDriver.exe from the install location, by default it will be C:\Program Files (x86)\Windows Application Driver. When running WinAppDriver.exe a console window is opened which logs the JSON Wire Protocol HTTP requests, like this.

Using Kudu with Microsoft Azure Web Apps

Posted by Anuraj on Thursday, June 2, 2016 Reading time :1 minute

Kudu Azure WebApps Azure WebApps

This post is about Kudu. Kudu is the central nervous system of a Microsoft Azure Web Site; it handles the Git integration to a Web Site as well as provides an API endpoint for programmatic access to app settings, deployment information, files, active processes, runtime versions, source control information, web hooks and web jobs. It can also run outside of Azure.

How to Send Emails from ASP.NET Core

Posted by Anuraj on Monday, May 9, 2016 Reading time :1 minute

C# ASPNET5 ASPNET Core Email MailKit

This post is about sending emails from ASP.NET Core using MailKit nuget package. In ASP.NET Github repository, there was one issue (1006) for Add SmtpClient support in ASPNET Core. And there was some implementation, which uses TcpClient to send email from ASP.NET Core. But this implementation is using MailKit nuget package. It is from Jeffrey Stedfast, and licensed under MIT.
BMC logoBuy me a coffee

Copyright © 2020 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub