28 'CSharp' posts
All 28 posts tagged with 'CSharp' are displayed here, click a link to see the full post
08/04/2024
Forcing Tests To Run In A Specific Order Using MSTest
By default, MSTest will run all tests in alphabetical order based on their name.
This means, you should be able to know when a test will run in relation to another.
For example, if you prefix your tests with TX...
27/03/2024
Upgrading From IdentityServer Version 2 To IdentityServer Version 4
I have recently needed to upgrade from IdentityServer v2 to IdentityServer v4.
This was relatively painless (upgrade via nuget), but I had these 3 issues:
1 - PublicOrigin is no longer exposed, need to add it manually:
//Add in PublicOrigin as it has been removed in v4 of Identity...
05/03/2024
Using ObjectDumper Breathed New Life Into A Complex System
For a previous article on Testing in Dotnet, I wrote about the package ObjectDumper.Net
I use this for lots of things, but it is great to add to a test to really see what an object looks like.
So it was obvious for me that I...
02/03/2024
My Thoughts On Using GitHub CoPilot
Recently I enabled GitHub Co-Pilot in Visual Studio.
This was following a talk about AI with Silicon South.
I have heard loads about it, but had no...
16/12/2023
Querying Console Output In Your Tests
Hello, and welcome to my blog post for December 16th of the C# Advent Calendar 2023.
Organised by Matthew Groves.
I wont tell you about me, but if you are interested, check out my About me page.
Last year in one...
31/10/2023
Explicitly Including A DLL In A Project
Have you ever seen this kind of error on running your code:
System.IO.FileNotFoundException: Could not load file or assembly 'XXXXXXXXXXXXXXX, Version=X.Y.Z.0, Culture=neutral, PublicKeyToken=yyyyyyyy'. The system cannot find the file specified. File name: 'XXXXXXXXXXXXXXX, Version=X.Y.Z.0, Cul...
19/04/2023
Intermittent Playwright Exception
I have been getting this error intermittently in our
Azure Devops
based
Playwright
tests using a headless Chrome browser:
Microsoft.Playwright.PlaywrightException: net::ERR_NETWORK_CHANGED Stack Trace: at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](Stri...
15/12/2022
Testing In Dotnet
Hello, and welcome to my blog post for December 15th of the .NET Advent Calendar 2022.
Organised by Dustin Morris Gorski on Twitter.
I wont tell you about me, but if you are interested, check out my About me page....
07/12/2022
Why Byte Arrays Are A Bad Idea When Dealing With Large Data
Hello, and welcome to my blog post for December 7th of the C# Advent Calendar 2022.
Organised by Matthew Groves & Calvin Allen.
I wont tell you about me, but if you are interested, check out my [...
01/07/2021
Remote Pair Programming
In order to get upto speed at my new job, I have suggested I Pair program with some of the developers.
This will help me get upto speed, help me learn the systems, the processes, the people and the tools.
It seemed like the existing engineers were hesitant, but that was quickly overcome. I believe...
27/05/2021
Speeding Up The Initial Load
My site is a static WASM one, there is no server host involved.
Therefore in order to display the dynamic content of the site, all the "code" must be downloaded to the browser, and then run within the browser to generate the content.
This is a downside to Blazor WASM, and the clever peeps at Micros...
22/05/2021
Setting Up A Sitemap
Google works best for your website if you give it a sitemap.
This is a full list of all the Uri's of all the pages on your site.
There are several ways to do this, and Google Help will show you how.
So I need one for...
03/05/2021
Adding Category Pages
Now we have tags on posts, it is easy to see all related posts, but there is no way to access a list of the known categories/tags.
So lets add one.
What do we need?
A new page
"Category List"
needs to be created.
This page will query the blogpostpopulater...
28/04/2021
Job Search 2021 _ A Live Programming Test
It's a new day, so its time for another interview, and this time its a live programming test!
I thought it was going to be setup like a "pair programming" concept, but turned out it was more of a "watch while you code", while talking about your decisions out loud with the occasional question thrown...
20/04/2021
Tagging Posts
As the number of posts are growing on this site, I am finding it harder and harder to find related items. I have already added a Search in, but sometimes, I want to see all my "Job Search" posts together, and not rely on them having the exact words I search for....
19/04/2021
Highlighting Search Terms
From my search page, you can search all the blog posts on this site.
As part of the results, I show a few characters either side of the found search term in the post.
It can also show multiple sections of a single post if multiple matches are found. e.g.
[Search for "Blazor"](/Search/b...
15/04/2021
Job Search 2021 _ Another Programming Test _ Feedback
I wrote about this programming test recently for a job interview.
Since it has been submitted, I have had some feedback, which I would like to follow up with.
Unfortunately, the company decided that they would not give me the opportunity to talk with t...
12/04/2021
Adding A Site Search
As the site gets more and more posts, its important to have the capability to search on the site.
Now there are several ways to do this:
- Let google do it by linking to
site:blog.markoliver.site 'search term'
e.g.
https://www.google.com/search?q=site%3Ablog.markoliver.website+Blazor - Implement...
04/04/2021
Making This Site More Accessible
I want to make this site as accessible for everyone as I can.
What is Web Accessibility Web accessibility means that websites, tools, and technologies are designed and developed so that people with disabilities can use them. More specifically, people can: * perceive, understand, navigate, and...
03/04/2021
Customising The Blazor Loading Page
I sent this tweet out the other day :
I just noticed that my #Blazor WASM Blog is only a 1.1MB download on 02/04/2021
Testing This Site
This site started as an easy way to learn
Azure Static Web Apps
, and an ego thing to figure out if I could build aWASM
based blog.I have satisfied those things for sure, but I have also realised I like writing these posts!
So Im keeping this site around, which means the code I have written n...
31/03/2021
Secrets Within Blazor WASM
A Blazor WASM app runs wholely on the client, therefore we cannot ask the server to store our secret and access it privately.
So how do we keep our secrets safe, yet still not commit them hard coded in our code in our repo?
The simple answer is YOU CANNOT. So don't commit any secrets in WASM code...
28/03/2021
Getting Twitter To Work
Hello again, in How I Built This Blog Part 3, we were unable to get Twitter to render the timeline on our page, nor could we get it reliably showing the "Tweet me" button.
The "Tweet me" button.
Its simple really, we add
<script async src="https://platform....
26/03/2021
How I Built This Blog Part 3
Yesterday I watched a great talk by Stacy Cashmore. In that talk she described a very similar process to mine to build her own branded Blog.
So I thought I would use her new Blazor based blog as an inspiration to some improvements t...
26/03/2021
Error When Incorrect Post Uri Used
I noticed that when an invalid Uri is used to access one of these Blazor based Blog posts, we don't get a 404 error (see Why Can I Not Jump Direct To A Blog Post? ) we get an error in the console thrown by the code base.
What is going on? Off to the debu...
23/03/2021
How I Built This Blog Part 2
So we left it as this needs to be done:
- The posts ordered in date order.
- The list of posts to be determined programmatically not from a hard coded list
- Somewhere to store images for the posts for free (not my google drive account as at present)
- A way to feedback on a post - preferably via T...
22/03/2021
Why Can I Not Jump Direct To A Blog Post
So I thought I had got my blog up and running in Azure static web apps. It is displayed in a browser fine. I even setup a custom domain, however I cannot publish any direct post links, as it generates a 404.
It turns out this is a [known issue](https://github.com/dot...
01/03/2021
How I Built This Blog
I wanted to build a blog website, as its all the rage, but primarily, because its a great way to learn more about Blazor WebAssembly (WASM).
My thinking was that I can host the blog for free in Azure Static Web Apps, and run the dynamic parts using Blazor WASM.
Most of a blog is static, so seemed a...