'Publishing to Azure Function from VS2022 failing without apparent reason

When trying to publish to an Azure function through Visual Studio 2022, I keep getting this, regardless of what I've tried:

enter image description here

Here's what I've done:

  1. Tried to publish from imported publish profile.
  2. Tried to publish directly to the resource group / function app
  3. Checked my Azure credentials in VS
  4. Deleted function app and started a new one
  5. Started a new project in VS
  6. 4 and 5 simultaneously
  7. Checked VS for updates/missing files

I'm trying to deploy to a function app that's set to .NET 6, Consumption (serverless), on Linux. The "output log" and tmp file say nothing that helps at all.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source