Blazor (Client Side) – FileNotFoundException: Could not locate application assembly at expected location

Posted by

Just a very quick one with Preview5. I encountered this gotcha whereby the project’s name in the solution explorer doesn’t match that of the folder name. I’d had a change of heart on the project name but of course the folder on disk doesn’t change automatically. Once I’d renamed the folder and then proceeded to […]

Read more...

Blazor (client-side) application – CI/CD – Deploy from GitLab to Netlify

Posted by

Using GitLab to host both the source control and perform CI/CD, we will take a blazor project and build it and then proceed to deploy it on Netlify. This article presumes that you have some familiarity with the following: GitLab for source control (See here) GitLab for CI/CD (See here) Netlify CLI for deployment (See […]

Read more...

Entity Framework – Debugging a Seed method from the Package Manager Console

Posted by

On the odd occasion you wish to debug Seed method code which has been executed from the Package Manager Console using the Update-Database command, a quick and dirty method is to add the following code: Yes it’s dirty! It will however fire up a new Visual Studio debug window and allow you to see what’s […]

Read more...

Http Range Requests in ASP.NET Core

Posted by

Here’s a small code snippet to use Http Range Requests with ASP.NET Core butchered from this now outdated MSDN article: using System.IO; using System.Text; using Microsoft.AspNetCore.Mvc; namespace WebApiRangeTest.Controllers { [Route(“api/[controller]”)] [ApiController] public class RangeController : ControllerBase { private static readonly byte[] _content = Encoding.UTF8.GetBytes(“abcdefghijklmnopqrstuvwxyz”); public IActionResult Get() { MemoryStream stream = new MemoryStream(_content); if (stream == null) […]

Read more...

How to customise Visual Studio’s “Create and initialize field” to add the underscore

Posted by

Step 1 – Starting with the Tools menu item from the top navigation menu, navigate through the menus as follows: Tools > Options > Text Editor > C# > Code Style > Naming Step 2 – Click the green Plus icon to open the following dialogue box: Step 3 – Now add the following: Step […]

Read more...

HTML5 Quake II MD2 Model Loader and Renderer

Posted by

Hot on the heels of my PHP MD2 renderer that loads a Quake II MD2 model file and renders and rotates the model in 3D, I decided that it was clunky and to take advantage of new techniques in browsers I present an HTML5 based Quake II MD2 model loader and renderer that I wrote […]

Read more...

PHP MD2 Model Viewer

Posted by

Not much to say except that this is a PHP script that loads an MD2 file server side (You have a choice between Quad Damage and Space Marine models). The script parses the data and outputs it to a GDImage as a wireframe model. This was just for fun and I hope it doesn’t prove […]

Read more...
Terry Butler