Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Failure to build Azure Functions project after upgrade to .NET 8
emsurgecto
#1 Posted : Tuesday, December 5, 2023 10:06:42 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/10/2022(UTC)
Posts: 9
Location: United Kingdom

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
Hello.

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

Quote:

...\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".

Remco
#2 Posted : Tuesday, December 5, 2023 11:45:58 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this issue.

Does this still happen for you if you set NCrunch in compatibility mode?
emsurgecto
#3 Posted : Tuesday, December 5, 2023 3:05:28 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/10/2022(UTC)
Posts: 9
Location: United Kingdom

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
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...560826e5b7165151004c7cc

Thanks for your quick response!
1 user thanked emsurgecto for this useful post.
Remco on 12/5/2023(UTC)
emsurgecto
#4 Posted : Thursday, December 7, 2023 11:04:04 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/10/2022(UTC)
Posts: 9
Location: United Kingdom

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
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!
1 user thanked emsurgecto for this useful post.
Remco on 12/7/2023(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download