ASP.NET Core – InvalidOperationException: Cannot find compilation library location for package ‘Microsoft.Win32.Registry’

TL;DR Add following line to your .csproj file: <MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish> Introduction I was publishing a project I am working on to web server (Linux) and I had an issue with Razor Pages. However, it seems that this error occurs only when you precompile your Razor views (MVC views, Razor Pages). Why would you do that? Well, […]

Continue reading

Using React Router v4 with create-react-app

Introduction – react-router React-router is the most popular routing solution for applications made in React. It is a collection of navigational components that compose declaratively with your application. Bookmarkable URLs, history, customizable navigation links and quite a few other features come with it. I had a need to learn more about react-router v4 so I […]

Continue reading

C# 7.1 – New features

Introduction In some of the previous posts we talked about new features in C# 7 and we talked about the usage of nameof expression in C#. In this post, we will talk about new features that came with C# 7.1.  For you to be able to use C# 7.1 features you need to have Visual […]

Continue reading

ASP.NET Core Interview Questions

Introduction ASP.NET Core and .NET Core have been in development for years already. If you look into ASP.NET Core MVC repository history, you will find commits from July 2013. These are the new frameworks from Microsoft, that are the completely open source and cross-platform. If you want to learn more about ASP.NET Core, you could […]

Continue reading

C# 7 – reference returns & local references

Introduction In on of the last posts, we talked about some of the big features that came with C# 7. In this post, we will continue on that and we will talk about returning references from functions and storing references inside of local variables. In addition to existing feature where you can pass in the […]

Continue reading