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

Notification

Icon
Error

Unable to build net9.0 isolated Azure Functions
arkiaconsulting
#1 Posted : Friday, June 6, 2025 5:47:22 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 20
Location: France

Thanks: 6 times
Was thanked: 17 time(s) in 10 post(s)
My Azure Function project (net9.0 isolated) cannot build, it fails with the error

Quote:

NCrunch: If you are experiencing problems in getting this project to build, have a look at https://www.ncrunch.net/...ng_project-build-issues
..\..\..\..\..\NugetCache\microsoft.azure.functions.worker.sdk\2.0.4\build\Microsoft.Azure.Functions.Worker.Sdk.targets (236, 5): The "AssignTargetPath" task was not given a value for the required parameter "RootFolder".


Noticeable packages:
Quote:

Microsoft.Azure.Functions.Worker: 2.0.0
Microsoft.Azure.Functions.Worker.Sdk: 2.0.4
Remco
#2 Posted : Friday, June 6, 2025 5:54:57 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,307

Thanks: 988 times
Was thanked: 1327 time(s) in 1230 post(s)
Thanks for sharing this issue.

Can you confirm whether you're running the latest version of NCrunch?

Is this a problem you can reproduce with a sample solution that you can share with me? You can submit small samples in ZIP form through the support contact form.
1 user thanked Remco for this useful post.
arkiaconsulting on 6/6/2025(UTC)
arkiaconsulting
#3 Posted : Friday, June 6, 2025 5:59:53 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 20
Location: France

Thanks: 6 times
Was thanked: 17 time(s) in 10 post(s)
Thanks Remco, I'm running NCrunch 5.15.0.4, VS 2022 17.14.4 Preview 1.0

I'll post a project.
arkiaconsulting
#4 Posted : Friday, June 6, 2025 6:07:23 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 20
Location: France

Thanks: 6 times
Was thanked: 17 time(s) in 10 post(s)
ZIP posted.

I must add that the FunctionApp builds well when using the version 2.0.2 of the Microsoft.Azure.Functions.Worker.Sdk package
Remco
#5 Posted : Friday, June 6, 2025 6:09:04 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,307

Thanks: 988 times
Was thanked: 1327 time(s) in 1230 post(s)
arkiaconsulting;18178 wrote:
ZIP posted.

I must add that the FunctionApp builds well when using the version 2.0.2 of the Microsoft.Azure.Functions.Worker.Sdk package


Thanks for this. They probably shifted something in the targets again. I'll let you know as soon as I have more info.
1 user thanked Remco for this useful post.
arkiaconsulting on 6/6/2025(UTC)
Remco
#6 Posted : Saturday, June 7, 2025 1:21:23 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,307

Thanks: 988 times
Was thanked: 1327 time(s) in 1230 post(s)
Could you try setting an NCrunch custom property 'DesignTimeBuild=true' in the Custom Build Properties setting for your function project? I'm hopeful this will get you up and running for the time being. I'm working on a more permanent fix.
arkiaconsulting
#7 Posted : Saturday, June 7, 2025 5:26:07 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 20
Location: France

Thanks: 6 times
Was thanked: 17 time(s) in 10 post(s)
Good catch !

As an alternative, downgrading `Microsoft.Azure.Functions.Worker.Sdk` to 2.0.2 works as well.

Thanks @Remco
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.040 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download