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



Azure Function : build issue
#1 Posted : Thursday, July 4, 2019 12:37:36 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/4/2019(UTC)
Posts: 1
Location: France


I'm testing for my company Ncrunch vs R# Continuous Testing before purshasing licence for every developers.
For now, Ncrunch is far better for me but it does not work with Azure Functions :(

It looks like Ncrunch is not looking the good path to find the dll, in my code exemple Ncrunch looks here :

but the real path is :

Is it possible to force the path where to look ? or Add this path on your side to check on ?

If someone has any work around I'm very interested because Azure Function is used a lot in our company.

#2 Posted : Friday, July 5, 2019 12:02:41 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,878

Thanks: 764 times
Was thanked: 984 time(s) in 937 post(s)
Hi, thanks for sharing this issue.

Unfortunately, the Azure platform (and its function projects) is not supported by NCrunch. I'm afraid that I can't offer any workaround to this problem.

It looks like Azure function support is a requested feature at the moment.

It's entirely possible that someone in the community knows of a workaround for this problem and is able to provide advice, but from the product side, unfortunately I can't help here.
#3 Posted : Saturday, November 30, 2019 4:41:52 PM(UTC)
Rank: Newbie

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

Was thanked: 2 time(s) in 1 post(s)
I succeeded in having a Function App build within NCrunch by adding the following to the Function csproj:

<Target Name="NCrunchBuild" AfterTargets="_GenerateFunctionsPostBuild" Condition=" '$(Configuration)' == 'Debug' ">
<Exec Command="xcopy /y &quot;$(TargetDir)bin\$(TargetName).*&quot; &quot;$(TargetDir)&quot;" />

and setting the configuration parameter "Copy reference assemblies to workspace" to true (for the Function App project only).

If I don't set this setting, NCrunch build is unable to resolve NuGet assemblies.

But this may decrease NCrunch performances...
2 users thanked arkiaconsulting for this useful post.
Remco on 11/30/2019(UTC), UppSol on 12/1/2019(UTC)
Users browsing this topic
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.045 seconds.