Amazingly poor quality of VS 2022 for Mac – an open letter (rant) to the VS team
Background story I am developing in dotnet every single day. For the last 18 months (approx since August 2021) I have been doing Blazor front end and for the last month I took the chance on MAUI as my PWA was not living up to my expectations. All this is is working with my dotnet…
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
Having dynamic properties as input array in tests – breaks the listing in test manager
In Visual Studio 2019 Mac – while building Theory based tests, using input object array This will work perfectly Trying to be a bit more robust (as we now property names will change) , replacing the static “Index” with something like nameOf() won’t work, resulting in the test disappearing of the radar in the test…
Stumbled across my MS thesis about the importance of processes in Software Development
Just stumbled across my 2004 MS thesis – “A Case Study into the Effects of Software – Process Improvement on Product Quality” – as study into the effects of agile project process maturity on the types of defects that surface in a software product. Still interesting stuff (at least some of the principles discovered) almost…
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 association table schema definition
Had some problems with the EF6 – working with 2 tables in the UserManagement schema – created an automatic association table in the dbo schema. Look no further than here for an explanation and solution #notetoself
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…
NullPointer exception in SyncFusion Listview (SfListView) #notetoself
If the ListViewFieldSettings element is missing when building Blazor… (build validation or code complete doesn’t catch this mistake) This results in a nullpointer exception which is difficult to debug #notetoself #devlife
Blazor live reload (quickstart #notetoself)
Starting point is Rick Strahl’s github: https://github.com/RickStrahl/Westwind.AspnetCore.LiveReload Add Westwind.AspNetCore.LiveReloadAdd services.AddLiveReload(); (in startup.cs)Add app.UseLiveReload(); (in startup.cs)Run the app from console: dotnet watch run . Open localhost:5050 (or what everport you have defined) Voila, you have live reload #notetoself
Loading…
Something went wrong. Please refresh the page and/or try again.