Contents tagged with .net core
-
Querying a SharePoint list via Microsoft.Graph after upgrading to .NET SDK v5
I've just finished upgrading all the project references in a CRM solution I built a while ago, which was using the Microsoft.Graph v4 .NET SDK (via the Microsoft.Graph v4.35.0 NuGet package, to be …
-
Feature flags in ASP.NET Core
I've been working on a few ASP.NET Core applications recently which has given me cause and opportunity to gate some functionality access behind feature flags whilst it's a work in progress, rather …
-
Converting a load of files from UTF-16 to UTF-8
There's a database here that I've been meaning to get into source control for a long time. Luckily we have regular backups of it (that have been restore proven) and it never changes so it's been …
-
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 …
-
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 …
-
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- …
-
Scaffolding an Entity Framework Core database in a project that targets .NETStandard
I've been working on a project recently for storing system configuration data (I know, I know, this is a problem that's been solved a thousand times over!) and after defining the database structure …
-
Adding a delay to ASP.NET Core Web API methods to simulate slow or erratic networks
I recently commented on a tweet by @jongalloway, saying:
A thousand times this! Run your app with an artificial delay introduced into server responses and look for things that don't make sense. …