blog
My blog of techy stuff, ranging around SQL (SQL Server, that is), C# and .net, JavaScript and a smattering of stuff about the Orchard CMS (that powers my site) as I get more familiar with it. There's the occasional non-technical post when something is of interest to me that I feel is worth sharing, but they should be few and far between
-
Resolving: Cannot find command 'dotnet ef' and then dotnet-ef.dll isn't in the right folder?
So in my post yesterday I noted that dotnet ef wasn't present anymore and following the instructions to install it gave me a broken installation of dotnet ef.
The hack I used of copying files …
-
Cannot find command 'dotnet ef' and then dotnet-ef.dll isn't in the right folder?
There I am, on a Saturday morning trying to create an Entity Framework Core structure for an existing database, and apparently there's no dotnet ef available to me.
After running dotnet tool …
-
How to fix NUnit tests that aren't showing in Visual Studio Test Explorer
Every now and then a project I'm working on decides it's either going to not show some or (more annoyingly!) all of the NUnit unit tests that are present.
The most recent project I've seen this …
-
Getting Opserver (the awesome monitoring solution from Stack Exchange) to monitor DMZ servers
I've written about how awesome Opserver is before, but one thing I hadn't had time or opportunity for was getting the dashboard (which operates via WMI) working for servers that are sat in our DMZ. …
-
Facial Recognition using the UWP APIs in Windows 10 via Windows Forms on .NET Core 3.0
NOTE: The full code for the app built in this post is available on GitHub: https://github.com/robertwray/FacesOfUWP
In a recent post I talked about using the Microsoft.Windows.SDK.Contracts NuGet …
-
Scheduled Task that runs a PowerShell script returning 0x80070001
I've recently migrated several scheduled tasks from one machine to another as part of a rationalisation process. A couple of these tasks were ones that can only be run at a certain time, so were …
-
Using Windows 10 UWP APIs from a .NET Core application
One of the things that Microsoft talked about at Build 2019 was how they intended to broaden availability of UWP APIs so that they can be consumed by non-UWP (in the "store only / sideload only" …
-
Reading and writing a memory-mapped file in .NET Core
According to Wikipedia, a Memory-mapped file is:
A memory-mapped file is a segment of virtual memory that has been assigned a direct byte-for-byte correlation with some portion of a file or file- …
-
Updating IIS application pools using appcmd
When it comes to configuring IIS it turns out there are quite a few different ways that you can do this:
Using the Internet Information Services (IIS) Manager
Hand editing web.config and …
-
Visual Studio Team Foundation Server 2015: "TF401189: The source branch has been modified since the last merge attempt."
(Yes, I know, ancient version of TFS!)
If you're attempting to delete a stale pull request in TFS 2015 where the original branch has been deleted (or in this instance merged back to master and then …