VSLive Redmond 2017: Unit Testing for Mere Mortals Slides & Code

Posted · Add Comment

I just wrapped up my talk at VSLive Redmond 2017 — “Unit Testing & Test-Driven Development (TDD) for Mere Mortals”.  Thanks to all the attendees for the great questions. As promised, here are my slides and code samples. Unit Testing & Test-Driven Development (TDD) for Mere Mortals Unit Testing and Test-Driven Development (TDD) arguably mean […]

Another workaround for the EF Core FileLoadException / DiagnosticSource problem

Posted · Add Comment

Have you tried doing a “dotnet ef migrations” or “dotnet ef database update” command for Entity Framework Core and gotten this error? System.IO.FileLoadException: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: ‘System.Diagnostics.DiagnosticSource, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ at […]

Deploy Entity Framework Core Migrations from a DLL

Posted · Add Comment

[Updated 3/29/2017 — Added a bash version of this script for deploying EF Core Migrations from Linux.] Entity Framework Migrations let you deploy incremental updates to a target database.  With Entity Framework Core (EF Core) this is done from the command line by going to the directory that contains your Entity Framework entity and migration code, […]

A Non-Terrible Workaround for the Dreaded EF Core Migration FileLoadException Diagnostics Problem

Posted · 1 Comment

In my Entity Framework Core Migrations walkthrough, I showed a workaround for an exception when you add a migration.  If you ran “dotnet ef migrations add” on a netcoreapp1.1 project, you’d get the following exception. System.IO.FileLoadException: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The located assembly’s manifest definition does not match the […]

 

© 2016 Benjamin Day Consulting, Inc.
Brookline, MA
617-645-0188
info@benday.com | |