Build/Test Issues

Failure to build Azure Functions project after upgrade to .NET 8

Started by emsurgecto on 1,737 views

Hello.

NCrunch is failing to build my 2 Azure Functions projects with the same error message:


...\Local\Temp\tp02libj.cty\Microsoft.Azure.Functions.Worker.Sdk.Generators\Microsoft.Azure.Functions.Worker.Sdk.Generators.ExtensionStartupRunnerGenerator\WorkerExtensionStartupCodeExecutor.g.cs: Type expected
...\Local\Temp\tp02libj.cty\Microsoft.Azure.Functions.Worker.Sdk.Generators\Microsoft.Azure.Functions.Worker.Sdk.Generators.ExtensionStartupRunnerGenerator\WorkerExtensionStartupCodeExecutor.g.cs: ) expected
...\Local\Temp\tp02libj.cty\Microsoft.Azure.Functions.Worker.Sdk.Generators\Microsoft.Azure.Functions.Worker.Sdk.Generators.ExtensionStartupRunnerGenerator\WorkerExtensionStartupCodeExecutor.g.cs: Syntax error, ',' expected
...\Local\Temp\tp02libj.cty\Microsoft.Azure.Functions.Worker.Sdk.Generators\Microsoft.Azure.Functions.Worker.Sdk.Generators.ExtensionStartupRunnerGenerator\WorkerExtensionStartupCodeExecutor.g.cs: Identifier expected


The projects build OK using the normal building process: from within Visual Studio or from the command line. Only NCrunch seems to be struggling.

Visual Studio: version 17.8.0
Azure Functions SDK package (Microsoft.Azure.Functions.Worker.Sdk): version 1.16.3
NCrunch: version 4.15.0.4

All NCrunch settings for the project are listed as "Default".

Hi, thanks for sharing this issue.

Does this still happen for you if you set NCrunch in compatibility mode?
Hi Remco.

After some digging, it looks like the issue also happens when building with Visual Studio. I have opened a ticket with the Azure Functions team and will wait for their response before updating here: https://github.com/Azure/azure-functions-dotnet-worker/commit/86367157352fe3e57560826e5b7165151004c7cc

Thanks for your quick response!
Hello again.

It has been confirmed that the issue was related to the Azure Functions SDK package and has nothing to do with NCrunch. Everything is working OK now.

Apologies for the unnecessary ticket.

All the best!

Post a reply

Log in to reply.