Exception: Cannot find compilation library location for package ‘Microsoft.AspNetCore’

System.InvalidOperationException: Cannot find compilation library location for package ‘Microsoft.AspNetCore’ Most likely you’ve upgraded your aspnetcore version and you have not cleared the existing files before deployment. If you’re using Azure DevOps as your build and release server you can enable “Remove Additional Files at destination” on your release step.

AspNetCore Debugging Startup issue in Azure Web App

Whilst upgrading from AspNetCore 2.0 to 2.1, some of the StartUp configuration had changed slightly and part of the upgrade required me to refactor code into the webhost builder. However as a result I didn’t quite do everything and after deploying to azure web app, I was hit with a 502 response. An exception beingContinue reading “AspNetCore Debugging Startup issue in Azure Web App”

AspNetCore 2.1.3 + Azure Web App + 502.5 Error

Anyone updating to AspNetCore 2.1.3 to an Azure Web App may want to hold off. Azure Deployments hasn’t been updated yet and is scheduled to be completed in a weeks time. Downgrade to Microsoft.AspNetCore.App 2.1.0 for now. Source:¬†https://blogs.msdn.microsoft.com/dotnet/2018/08/21/net-core-august-2018-update/

Visual Studio 2017 – Add, Remove or Update DotNetCLITools references – 7th March 2017

Visual Studio release notes as of 7th March release notes state that the DotNetCLITools packages cannot currently be managed by the Nuget Package Manager and must be edited manually in the csproj. After migrating my current projects, I finally figured out that it wasn’t just me that was struggling to find the place to manageContinue reading “Visual Studio 2017 – Add, Remove or Update DotNetCLITools references – 7th March 2017”

My Resharper license just expired…renew or not to renew

It’s that time of the year again when the licenses on my third party products start lapsing and I pull out my card to renew for another year. Although having used Resharper for a long time, the line between it and Visual Studio has blurred for me. So instead I’ve decided not to renew andContinue reading “My Resharper license just expired…renew or not to renew”

Creating a SQL Alias

To help standardize the connectionstrings across your team’s development machines. You can all use the same sql alias, database name, username and password. The last three are easily configurable however the sql alias isn’t so obvious. Here’s a simple set of instructions to get it working. My environment at time of this post is WindowsContinue reading “Creating a SQL Alias”

Disabling NuGet Package Restore

You’ve enabled NuGet Package Restore and want to reverse that decision? Follow the steps below for every csproj in your solution: Close down the solution Delete the .nuget folder on the solution level Open up each csproj in a text editor Find the following XML tags and delete them: <RestorePackages>true</RestorePackages> <Import Project=”$(SolutionDir)\.nuget\nuget.targets” /> <Target Name=”EnsureNuGetPackageBuildImports”Continue reading “Disabling NuGet Package Restore”

AngularJS – Why?

Why Angular? AngularJS is written in Javascript and is a HTML compiler. It was written by developer, Misko Hevery who originally built AngularJS as a solution¬†for building HTML components with functionality. It is now a fully fledged open source framework. It allows you to build complete applications. It is very easy to learn and youContinue reading “AngularJS – Why?”

AngularJS 1.4 – Declaring a Controller

I’ve been following a few tutorials that describe declaring a MainController. However the tutorials a pre AngularJS 1.3x and are no longer valid. Previous AngularJS allowed you to define a controller globally . As of 1.3x this is no longer the case and you must declare your Controllers inside angular modules. Here’s an example: varContinue reading “AngularJS 1.4 – Declaring a Controller”