Blazor (Client Side) - FileNotFoundException: Could not locate application assembly at expected location
Fri May 10 2019ProgrammingWeb Development
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 fix the path in the .sln file this error went away. tl;dr project folder name and project name in the solution explorer seemingly have to match up at present
Blazor (client-side) application - CI/CD - Deploy from GitLab to Netlify
Wed May 01 2019ProgrammingWeb Development
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 here) 1. Using the current SDK 3.0.100-preview4-011223 (See here), create a new blazor (client-side) project called 'testproj': Now create a file called .gitlab-ci.yml and add it to…
Http Range Requests in ASP.NET Core
Tue Jan 08 2019ProgrammingWeb Development
Here's a small code snippet to use Http Range Requests with ASP.NET Core butchered from this now outdated MSDN article: The "Request.Headers.Range" method has now been replaced by opting in for this functionality using the enableRangeProcessing boolean when returning a FileStreamResult object. Have fun!
How to customise Visual Studio's "Create and initialize field" to add the underscore
Mon Jan 07 2019ProgrammingWeb Development
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 4 - Create the configuration to use the naming style we've just created. Step 5 - Use the "Create and initialize field"option as normal and you'll see the following.
© Copyright 2008-2021 Terry Butler