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

Notification

Icon
Error

NCrunch under Mac/Parallels
jotto
#1 Posted : Thursday, November 16, 2023 12:49:29 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/12/2013(UTC)
Posts: 13
Location: Norway

Was thanked: 5 time(s) in 5 post(s)
I'm trying to run NCrunch under Mac with Parallels and Visual Studio 17.8.

None of the test projects will build because of the following error:

Quote:

NCrunch was unable to restore Nuget packages required to build a test environment for this solution, due to an unspecified failure when invoking 'msbuild.exe /t:restore'

The following packages do not exist under the Nuget packages folder for the active user profile, yet they have been flagged by NCrunch as potentially needed for normal operation. NCrunch has attempted to restore these files via an MSBuild restore step, which has either failed or not returned the expected result. It's possible that these packages may not be needed for building projects or running tests in your environment. If you experience downstream problems with NCrunch on this solution, it is recommended you restore or download the packages manually.

Note that the restore of packages may fail if NCrunch is being hosted under a windows account that does not have sufficient rights to store files in the Nuget packages directory.System.Threading.Thread v4.0.0


The test projects also give the following build error:

Quote:
An error occurred while analysing this project after it was built: NCrunch encountered an unexpected error occurred while building an environment to analyse an assembly: The NCrunch task process failed to correctly initialise with the following exception: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The NCrunch task process was unexpectedly terminated. For information on how to troubleshoot this problem, please see https://www.ncrunch.net/...inated-unexpected-error
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect()
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect()
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters , Boolean )

The trace output for the process is as follows:
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'nCrunch.TaskRunner.DotNetCore.20.x64, Version=4.18.0.3, Culture=neutral, PublicKeyToken=null'.


This is a MacBook with M2 Max. Hence it's running ARM Windows, which is emulating x64 for x86/x64 applications. Not sure if this is causing the issue.

Remco
#2 Posted : Thursday, November 16, 2023 10:37:08 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi,

Sorry ARM is not a supported platform for NCrunch. There is an active feature request for this if you want to add your voice to it.
jotto
#3 Posted : Friday, November 17, 2023 8:13:40 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/12/2013(UTC)
Posts: 13
Location: Norway

Was thanked: 5 time(s) in 5 post(s)
Thanks for the quick reply.

I have voted for that feature now. I'm running Rider natively on the Mac now, but its continuous unit testing is nowhere near NCrunch on performance and usability.

Missing NCrunch so much!
1 user thanked jotto for this useful post.
Remco on 11/17/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.036 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download