The configuration file 'Configuration.json' was not found and is not optional.

The problem When I switched to RC2 and tried to publish the website I got the error about missing configuration file. Problem For some reason configuration files was not copied. Initialiity I thought that I did not set the fiel property, but such are missing in the xproj no.w Solution To solve the problem I have to update the project.json. There is a section responsible for coping all non compilable files, it is called publishOptions "publishOptions": { "include": [ "wwwroot", "Views", "Configuration.json", "web.config" ] },...

WTF is S.O.L.I.D.?

SOLID It is a set of principles which are meant to help you create a better, maybe even cleaner code. SOLID is based (or inspired by) OOP ideas, but in my mind it making it little bit abstract. Principles Single responsibility principle a class should have only a single responsibility (i.e. only one potential change in the software's specification should be able to affect the specification of the class This is simple a class/objects/abstraction idea implements properly. Open/Close principle software entities … should be open for extension, but closed for modification So you should be able to...

Toggle Cortana/Search button

What is Cortana With an appearance of Cortana in Windows 10 there is a new functionality added to task bar. This button behaviour change depends if you have Cortana turn on. When the asistent is turn off you have standard Windwos Search but when you enable it the area changed a bit: You can also select the short version, that is just a button without a text field or hidden one: In this case, you will have to use the star menu to search anything. How to change it. To change it simply open a context menu(right click) on...

Automatic OneClick publish on build server

I like the idea of the Continuous Deployment. I am also using the Visual Studio Online build server. To see what I can do with it I want to deploy small OneClick powered application using automatic build server. As it is simple to build solution or run automated test (there is a step for it), the OneClick deployment process is little bit more complicated. Scripts I needed three scripts: Update assemblies I want to keep the same assembly version on the all generated dll's. So I have used the Powershell script to do it for me. Update publish data Next...

Conversion from .NET 4.5 to 4

Recently I have to downgrade on of my project. It was written in .NET 4.5 with use of async’s, some reactive extension and few other libraries provided by NuGet. The aim was, and still is, to compile it in .NET 4 so it can be run on Windows XP (yep I know it is old and not supported OS but it is still used in the “clients” environment). It should be simple Generally the downgrade was more complex that I expected. I have started with changing version of framework to the one which will work on WinXP. So...

Polyprogrammer Challange.

At my work I am using .NET with C# only. Even this is not the only programming language I know I am slowly loosing the proficiency in the other. For that reason I want to do a challenge that is to achieve the same results in the programs created in the different languages. Challenge topic To help to win a large amount of money on lottery ;) I need the program which will download previous results from a National lottery website and then parse them to return the most popular. Language to use: F# -> I know it little bit but...

Update DNX.

Update all packages dnu restore after that. Check DNX version See the file system: C:\Users\<user_name>\.dnx\runtimes Or better use DNVP to list runtimes: Open NuGet Package Manager Console or Run dnvm.cmd list The result should be something like that: At the time of writing the current version is beta7. Update all DNX'es. Use the Package Manager Console to run the dnvm.cmd upgrade -arch x86 -r clr dnvm.cmd upgrade -arch x86 -r coreclr dnvm.cmd upgrade -arch x64 -r clr dnvm.cmd upgrade -arch x64 -r coreclr as example: And now you...

Installing Ghost with Node on Arm powered machine.

Recently I have moved my blog from a free Azure website to Scaleway, as a result I have to remind a few tricks and learn something new. Create VM First step was to create a VM in the Scaleway. I have choose Debina 8.2 as an operating system. Install base software When server is read you need to install all required software: `apt-get install --yes nodejs build-essential nginx` So now you have node and nginx installed so the last step is configuration. Install ghost with command Grab the latest version of Ghost from Ghost.org: `$ curl -L https://ghost....

Apt-get on Windows 10.

Finally Microsot have added the application repository, similar to apt-get form Linux world. One of the feautres is ability to use Chocolatey( and other) repositories. The only problem is ONeGet required the unofficial provider (at least for now) to work with a Chocolatey THe easies way to add it is to use the snippet: Get-PackageProvider -name Chocolatey -ForceBootstrap After that the simple powershell command is installing the packages: Install-Package <packagename> -ProviderName chocolatey MOre information can be found on the OneGet's Githbu page: https://github.com/OneGet/oneget I hope it helps....

Embedded EventStore

Recently I have to create in memory solution for EventStore. The solution works only with ES version 3. You have to get the additional NuGet called EventStore.Client.Embedded. The main problem was to find appropriate documentation on how to make it running, below is very simple solution for the problem....