Docker build with private NuGet feed in Azure Artifacts
While trying to containerise a .NET Framework app I hit a problem while trying to restore packages from NuGet that were from a private NuGet feed. The container didn't know my credentials, so the feed was rightly responding with "401 (Unauthorized)".
Here's how I used Azure Artifacts Credential Provider with Windows Containers to solve it.