Stage failing in Azure DevOps pipeline

How to avoid global.json version conflicts in Azure DevOps

In Azure DevOps, you sometimes have a project that’s being built with a certain .NET version. It’ll require that particular SDK version, and most typically that is defined in the global.json file. However, if you also need to install a certain .NET tool, running dotnet tool install MyBuildTool will fail. And it’ll fail before it actually tries to install the version of the tool you wanted! This article explains how…Continue reading How to avoid global.json version conflicts in Azure DevOps

Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to delimit the name

How to fix Azure DevOps “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name”

This article explains one possible reason why you might run into an error like “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name” when using a PowerShell task in an Azure DevOps pipeline. Confusingly, the offending line might be this: Write-Host (‘##vso[task.debug]$LASTEXITCODE: {0}’ -f $LASTEXITCOD … Not something you even have in your script! What gives? Problem…Continue reading How to fix Azure DevOps “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name”

Hacktoberfest 2022

… And that’s a wrap! This year I had the chance, and the privilege to once again participate in the month-long celebration of open-source, Hacktoberfest. And unlike last year, I took the time to write about the experience again! And for someone like me, who doesn’t really do much open-source stuff, it is a bit of an experience. And the event itself has come a long way! 2022: Hacktoberfest has…Continue reading Hacktoberfest 2022

bash - it's even more of a mystery than PowerShell

Azure DevOps fails with “Error: The path ‘/home/vsts/work/1/s/your-repo’ does not exist” even though the repository is there for sure?

Eh, this was a weird one. This article explains how to get around an issue where your build tools fail due to weird “path does not exist” errors when you’re using bash to execute a restore to your project. The build would probably succeed nicely, but it fails due to missing dependencies – in my case, at least the whole node_modules folder was missing. And of course, it is –…Continue reading Azure DevOps fails with “Error: The path ‘/home/vsts/work/1/s/your-repo’ does not exist” even though the repository is there for sure?

Microsoft Graph g-raph (giraffe) - the spirit animal of Microsoft Graph

One way to fix “Unsupported or invalid query filter clause specified for property” for your Microsoft Graph API queries

This article explains one possible fix to an annoyingly generic exception thrown by the Microsoft Graph API (namely, “Unsupported or invalid query filter clause specified for property”) or an even more generic exception thrown by PnP PowerShell (“Exception of type ‘PnP.PowerShell.Commands.Model.Graph.GraphException’ was thrown.”) when you’re trying to query Graph API with what’s called “Advanced query capabilities” (operators like less than or equal, greater than or equal) instead of just checking…Continue reading One way to fix “Unsupported or invalid query filter clause specified for property” for your Microsoft Graph API queries

Powershell is hell

Why do you get a “Missing closing ‘)’ in expression.” error when piping a collection to a for loop in PowerShell?

Today, I’m writing about a stupid error. Yeah, I do make those every now and then. After adding a for loop to my PowerShell script, I started to get annoying ParserErrors about my for loop missing a closing bracket. But it was NOT missing one – what gives? Problem So, what I was trying to do was to concatenate a kinda random collection of strings after the first few items.…Continue reading Why do you get a “Missing closing ‘)’ in expression.” error when piping a collection to a for loop in PowerShell?

Wifi is an essential need in Maslow's hierarchy

How to configure your Smart Home wifi devices that fail to connect due to a weak wifi signal?

This article describes a solution to a problem that I have had with pairing different Smart Home devices with my app or some cloud service using wifi. Weirdly, wifi can be strong enough to provide connectivity to any of the devices, but weak enough for the pairing to fail. Fun stuff. You can usually just move the devices closer to your router, but with some devices that might be a…Continue reading How to configure your Smart Home wifi devices that fail to connect due to a weak wifi signal?

git logo

How to import an Azure DevOps Git repository… From another Azure DevOps organization?

A while ago, I needed to move an Azure DevOps Git repository from one organization to another. And that was far easier than I thought. For once, a nice surprise from Git _and_ Azure DevOps 😀 So, let me tell you how that’s done! Well, how it’s done if it goes well, anyway. And if still works as it used to when you’re reading this. We’ll see! Solution

An accurate depiction of a NuGet package factory

How to fix NU3028 and NU3037 errors in Azure DevOps builds?

This article explains a solution to a rather annoying issue, where certificate validation for builds trying to fetch NuGet packages published by Microsoft fails when using .NET 5. This happens at least with Docker build when you’re relying on some Microsoft-provided images… But probably also in a lot of other cases. Problem When running an Azure DevOps pipeline with any task that does any Docker stuff, your build fails. Or…Continue reading How to fix NU3028 and NU3037 errors in Azure DevOps builds?

Some men want to watch the build fail

How to kill the process causing the “MSB3021 Unable to copy file — The process cannot access the file because it is being used by another process.” error?

This time, we’re taking a look at an annoying situation where your previous debugging session, or perhaps your dotnet serve, somehow locks up your dlls or other important files that you kind of need to overwrite when rebuilding. And that, well, causes your build or debugging session to fail. So, let’s take a closer look at the actual errors we’ve run ourselves into! Problem Build complains about retrying something and…Continue reading How to kill the process causing the “MSB3021 Unable to copy file — The process cannot access the file because it is being used by another process.” error?