Azure / azure-functions-dotnet-worker

Azure Functions out-of-process .NET language worker
MIT License
403 stars 166 forks source link

Error: 'Having multiple overloads of method 'Configure' is not supported.' after upgrading .NET 6.0 to .NET 8.0 using Upgrade Assistant #2529

Open Ajitha113 opened 4 weeks ago

Ajitha113 commented 4 weeks ago

What version of .NET does your existing project use?

.NET 6

What version of .NET are you attempting to target?

.NET 8

Description

After upgrading project's Target Framework from .NET 6.0 to .NET 8.0 using Upgrade Assistant CLI, encountered an issue while running the program with 'Having multiple overloads of method 'Configure' in 'Program.cs' file

Project configuration and dependencies

Project.csproj csproj.zip StartUp.cs StartUp.zip Program.cs Program.zip HttpTrigger Function HttpTriggerFunction.cs.zip Timer Trigger Function TimerTriggerFunction.zip

Link to a repository that reproduces the issue

No response

igor-henriques commented 3 weeks ago

I recommend you creating a new project using the .NET 8 template, move all your implementations to this new project and then add this new project back into your first solution.

I've done that and a lot of the issues I was having were resolved.