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

Notification

Icon
Error

Dotnet tool is not installed for Ncrunchb
cedricmendelin
#1 Posted : Monday, August 22, 2022 2:51:20 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/22/2022(UTC)
Posts: 1
Location: Switzerland

Hi guys

Currently I have problem setting up Ncrunch in a new project.

It is a blazor project on .net 6 and the customer is using a custome dotnet tool to generate code.
This custom tool is available as a nuget package and needs to be installed with the command "dotnet tool restore".

When I start Ncrunch, i errors that the "dotnet" command is not known. As I found out in the MS docs, the "dotnet tool restore" command is only installing the tool for the current user.
Under which user is ncrunch executed and how can I install the custom tool for this user?

Currently I have the exe file added as "Additional files to include", which does not seem to work...
Remco
#2 Posted : Monday, August 22, 2022 11:03:39 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for posting.

Usually, Visual Studio will run the Nuget restore action when it opens your solution, which will install any packages required for the solution. Most likely the package is already installed on the machine but the build steps cannot find it as they haven't been engineered with NCrunch's constraints in mind.

Can you share any information around how this package operates or how it normally resolves the source generator? I'm assuming that it's the source generation that is causing an error under NCrunch.
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.021 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download