Don't have Telegram yet? Try it now!
https://sqldbawithabeard.com/2019/11/26/fixing-the-failed-to-generate-the-compressed-file-for-module-cprogram-filesdotnetdotnet-exe-error-when-deploying-to-the-powershell-gallery-using-azure-devops/
Fixing the 'Failed to generate the compressed file for module 'C:\Program Files\dotnet\dotnet.exe' error when deploying to the PowerShell Gallery using Azure DevOps