Detected package downgrade on new install with new Azure Function project
I installed JetBrains Rider 2024.2.7 on mac, downloaded azure core tools and created a new function app from Rider. It doesn't work. It complains about this:
Detected package downgrade: Microsoft. Azure. Functions. Worker from 1.22.0 to 1.21.0.
Is there any solution to this? Every time I click on the Install package link at the top of the file it gives the above error. After a restart it no longer displays the Install package link and just says:
Cannot resolve symbol 'ConfigureFunctionsWebApplication'
Do I need to do all “dotnet add package” via commandline myself?
Please sign in to leave a comment.
The similar problem does not exist in the latest 2024.3 release. The default version defined in template is 2.0.0.
You can also have a check if you have the latest plugin version installed.
v2024.3 doesn't work either. I opened the project the previous version created with the error:
I created a new function app with v2024.3 and it created it without any code.
What's your Azure Toolkit version? With the latest Rider 2024.3.2 & Azure Toolkit plugin installed, will the newly created application report the exception?
Remember to restore NuGet dependencies before running the project.
Also, it worth to check if you can start the application with func start CLI. Try with
func start
or open a project created byfunc init
to see if there is any error.