-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS publish fails with 'Metadata generation failed' #5229
Comments
Ok having created a new "copy of the project" by simply telling VS to create a new azure functions project and then importing the code from the original and changing nothing ... I found that the publish profiles have the following differences ... The broken one has these extra elements
And for the elements that they both had I notice that there was a single key difference other than urls / key information username ect ...
... It seems that MSDeploy isn't working for Azure Functions I guess. |
Can you share what your broken project file looks like? |
Of course ... here it is ...
This file was generated by an earlier version of the tooling for VS. Is there some advantage to executing an Azure functions app directly out of a Zip package, surely that would slow execution times down having to unpack it? |
Running from zip (or officially known as "run from package") has a lot of benefits and is the recommended way to deploy function apps. You can see here for more details: Azure/app-service-announcements#84. Do you see any more explicit errors in the Output window in VS? You may need to change the source from the dropdown to see if there's anything useful. |
Nothing more than I've already given you.
Not sure how to save the generated auth info though so I can check in to the azure devops repo and have pipelines use it later. Feels overkill, but it solved the issue. |
I think i'm seeing something like these ...
#4055
#4578
Everything builds and runs fine locally.
Left a working deploy-able solution on Friday, came in this morning to fix something completely unrelated and it's unable to publish.
This is what my VS output window has to say about the matter ...
Things I've tried ...
I can confirm ...
The text was updated successfully, but these errors were encountered: