TechTalk / CodeBlog

resource mipmap/appicon (aka com.companyname.myapp.maui:mipmap/appicon) not found.

Using: Visual Studio for Mac 17.5 Preview (17.5 build 1701) Something happened during the upgrade in the preview channel so that Android manifest couldn’t find the appicons provided. resource mipmap/appicon (aka com.companyname.myapp.maui:mipmap/appicon) not found. The solution was to copy the appicons to he Platforms/Android/mipmap and change the build action to AndroidResource

Blazor: Modifying header meta and link elements

When creating web applications, we all try to create good SEO tags in the header of each page. Modifying the meta tags based on page content is a standard practice. In Blazor, this is not obvious as the _host.cshtml is rendered before the Blazor execution pipeline. There was a tag extension in the preview of…

Fixing google authentication due to my half-ass https setup

The problem Google Authentication on my Blazor app worked locally but not live – hosted @DigitalOcean in Ubuntu Docker Containers. Locally I was working https using devcerts and the https on the DigitalOcean droplet was faked using Cloudflare’s (super-nice) security features (where they basically hide your website behind ssl without any certificate installation. I switched…

Mac: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.

For 3 hours I was dealing with the title error nothing seems to work until I read the answer from hikrikunen where the key was deleting the localhost certificates in the system keychain and then running dotnet dev-certs https –clean and then dotnet dev-certs https -t Uptil the point of deleting the localhost certificates, the…

Blazor: having a App/Pages/System folder will kill your app!?

Fun discovery of the day … when building Blazor – having a Pages subfolder called System will completely mess upp the application build. Renaming the folder to SystemX (or anything else for that matter) will make those errors disappears 🙂 This is possibly a result of some local coincidence … but I can reproduce this…

Migrating from mssql to postgres in ef6

I was faced with the project of migrating an mssql database to postgres (why? mainly because of licensing fees as we are about to go live with the solution – without any revenues any time soon 🙂 ) This is more a #notetoself if im faced with this again rather than any kind of guideline…

EF6 core – reset migrations during development

In development and while testing various things in EF6 core – I tend to end up with a lot of migration garbage which occasionally I have to take out. This is how it’s done #notetoself Delete all *. cs files in the Migrations Folder.Delete the _MigrationHistory Table in the DatabaseDelete all database tables subject to the migration (take care…

EF6 core – load grandchildren in query – the key is ThenLoad

Working with entity: Tournament Which has children: TRound with Course as entity that needs to be loaded based on Id ( as each golf round is played on a Course 🙂 ) ctx.Tournaments.Include(c => c.Trounds).ThenInclude(c => c.Course) Took me a while to figure out why ctx.Tournaments.Include(c => c.Trounds.Select(c => c.Course)) stopped working, but it is…

Blazor OnClick doesn’t fire

#notetoself … Once again, scratching my head for way to long about something that turns out to have a simple workaround #devlife On one of my (new) blazor pages (/Bookings/TeeTimes), onclick event was not firing. Didn’t matter what kind of flavour of onclick declaration I used, the event was not getting fired. Until of course…

Loading…

Something went wrong. Please refresh the page and/or try again.