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 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”

HTML with in-line Razor

This little gotcha keeps biting me in the ass every time I move away from Razor for a while. So I’ve decided to blog so this time I’ll remember. When you want to insert some razor syntax in-line within a HTML tag. Make sure you include the @ delimiter on any further statement. Following example attempts to addContinue reading “HTML with in-line Razor”