ASP.NET Core hosting

Hosting is how you get you ASP.NET application up and running. And ASP.NET Core is just bunch of libraries host in you own process. It’s not provide a hosting – user have to take care of providing hosting process.

By Dawid on (tags: ASP.NET, core, hosting, categories: code)

Azure Functions

Some time ago Microsoft announced the Azure Functions. What it is exactly? So, Azure Functions are event driven functions which are executed on some occurrence of events but also can be used on-demand.

By Dawid on (tags: azure, c#, functions, categories: azure, code)

Secrets of project.json file

As you may already notice ASP.NET Core is using project.json files to controls almost all aspects of the project. It contains lot of section (which I will describe bellow) with full support of intellisense. That file is also synchronized with Solution Explorer – removing referenced from file will automatically update References node in Solution Explorer. Here is the list of pro…

By Dawid on (tags: ASP.NET, core, project.json, categories: code)

Entity Framework Core context in separate assembly

Most of example currently available on the internet shows how’s to start using ASP.NET Core and EF Core implemented in the same assembly. In the RC1 there was couple of tricks which we had to implement if we would like to have separate assembly with data model definition. In RC2 release it’s a little bit easier. Bellow I’ll show you how you can achieve that. This is our applica…

By Dawid on (tags: ASP.NET, context, core, ef core, categories: code)

How to obtain Content and Web roots paths in ASP.NET Core RC2

There are many situations that developer needs to known what are the content or web roots paths. One of such situations is accessing custom JSON configuration files. In the classics ASP.NET applications you was always able to use Server.MapPath() method. With that method you was able to find physical path or web root directory. Later on in RC1 there was possibility to use IAppl…

By Dawid on (tags: core, .net, path, rc2, root, categories: code)

The dotnet Tool

In recently released .NET Core RC 2 there is possibility to use new dotnet tool. It exposes a set of commands , such us: creating empty projects restoring packages building your project unit testing .NET Core contains much more tooling but most of them are exposed thought dotnet tool. There is also no problem with extend set of commands. It has simple extensibility model – you …

By Dawid on (tags: core, dotnet, .net, rc2, categories: tools, code)

Interfaces in TypeScript

In TypeScript interfaces are used to descript a type. Classes and functions are used to implement behaviour while interfaces are providing information's about shape of the data. All of the type information’s are removed from TypeScript program during compilation there is no runtime overhead and we can freely add type data. To be honest with you interfaces are like Swiss army kn…

By Dawid on (tags: interface, TypeScript, categories: code)

TFS 2015 clone/import/export build definition between team projects

While exploring features of the new Visual Studio Team Foundation Server 2015 I found that it is not possible to reuse a build definition created in one team project into another team project. Since this is a feature that I am going to use frequently, well, every time I start a new project, this is a must have functionality. In this post I will give you a complete solution I’ve came up with.

By Mirek on (tags: build definition, clone, tfs, VSO, categories: tools, infrastructure, code)

Automated UI testing in ASP.NET MVC5 using Selenium WebDriver

I would like to show you how easy it is to use unit test in Visual Studio and Selenium Web Driver to make automated UI test. The Plan The plan is simple: host your app, investigate given page, make assertions. The first problem is how to host our application from inside a unit test? I want to host app using current code not from external source which is already delopyed – post …

By Piotr on (tags: asp.net 4, mvc 5, Unit test, categories: code)