I need to upgrade a function app to a newer version of Microsoft.NET.Sdk.Functions because of a vuln in a dependent package. I'm currently on 1.0.13, and when I try to upgrade to 4.0.1 I get a bunch of build errors. For example:
The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
This is in a file that is using Microsoft.Azure.WebJobs.Host. And in that same file:
The type or namespace name 'TraceWriter' could not be found (are you missing a using directive or an assembly reference?)
Which I guess came from the Microsoft.Azure.WebJobs.Host namespace.
Is there a guide somewhere about changes that are needed when upgrading from version 1x to version 4x?
Note that I see these same errors when trying to go to 3x, so I expect that's where the significant changes started.
Thanks,
Rick
@Rick Krause It would be best to raise an issue in its official repo with more details on the vulnerability that is being reported. Also, if possible, you could try upgrading to a newer version of Azure Functions by following the migration guides for V1 to Newer or V2 to V3, whichever applicable.