Migrated to Hugo

August 30, 2020

I have successfully migrated my blog from Jekyll to Hugo. The ability to generate the entire site from a single executable is very appealing. What pushed me to finally make the move was a security notification from GitHub: apparently one of the ruby gems Jekyll relies on had a vulnerability. I’m not a ruby developer, and I blog so infrequently that it’s a pain to try to remember how to update my local ruby environment and keep everything working, so… Hugo it is!

Continue reading...

How to use .NET Standard 2.0 NuGet packages with F# Interactive

June 26, 2018

I have been learning F# recently, and one of the great things about it is the REPL, called F# Interactive.

I ran into a problem when I tried to reference the Newtonsoft.Json NuGet package in an .fsx file, like so:

Continue reading...

Project file is incomplete. Expected imports are missing.

June 12, 2018

After many months of doing other things, one of our devs tried to open our solution in the latest version of Visual Studio 2017 (15.7.3), only to be greeted with the following error message:

Project file is incomplete. Expected imports are missing.

Huh?

Continue reading...

Azure Web App deployment fails to build class library project that uses C# 6 features

August 18, 2015
Update 2015-10-12: The Azure team resolved this issue last month, and you no longer need to perform the steps that follow.

Continue reading...

Upgrading RDLC schema from 2008 to 2010 in Visual Studio 2013

June 20, 2015

Disclaimer: This worked for me, but as with all undocumented hacks, proceed at your own risk. There may be a better way to do this, but I couldn’t find it. I trust that your .rdlc files are in source control, and that you can rollback to a previously working version if this causes problems.

For various reasons, I needed to upgrade my RDLC report’s schema version from the default 2008 version to the 2010 version.

Continue reading...

Azure WebJob with status "Never Finished"

March 18, 2015

I was a little confused as to why one of my Azure WebJobs had a status of “Never Finished”:

Continue reading...

Ensuring a SQL Server column copies as text to an Excel column

February 1, 2015

The problem arises when you have a column with character strings that look like numbers. Looking like a number isn’t a problem in and of itself, unless the value starts with the character “0”. Excel will try to treat the column’s values as a number, and therefore eliminate any leading 0s.

Continue reading...

Authentication fails with access_denied error while using Microsoft.Owin.Security.Google 3.0.0

August 30, 2014

Just a quick tip:

If you’re trying to use Google Oauth 2.0 to authenticate users in your MVC 5 application, start with this tutorial:

Continue reading...

Enumerating HttpModules: MVC Edition

August 13, 2014

About 6 years ago, I wrote a post about Enumerating HttpModules in ASP.NET. On my current project, I once again needed to view the loaded HttpModules, but this time in ASP.NET MVC. The code is very similar; it just has some MVC-isms and has been LINQ-ified now.

Here is the relevant code:

Continue reading...

CSC : warning CS1685: The predefined type ‘System.Runtime.CompilerServices.ExtensionAttribute’ is defined in multiple assemblies in the global alias

May 9, 2014

In one of my ASP.NET MVC 5 projects that targets .NET 4.5.1, I noticed that I was getting a new compiler warning at build time:

1
CSC : warning CS1685: The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias

Continue reading...