Hi,
I am trying to run NCrunch as a VSTS command line build step but always get errors:
The command line options are: "MySolution.sln" /c "MySolution.v3.ncrunchsolution.BuildServer" /o "%AGENT_BUILDDIRECTORY%\NCrunch\Output"
The forst error in the output window is:
Quote: Not restoring NuGet packages for '...App.iOS.csproj' because package restore mode is disabled
Loading project: ...App.iOS.csproj
...
All projects have been loaded
ERROR: Unable to restore required Nuget packages for .NET Core test environment
NCrunch was unable to restore Nuget packages required to build a test environment for this project, 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.
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
System.Diagnostics.TraceSource v4.3.0
xunit.abstractions v2.0.1
xunit.runner.utility v2.2.0
NCrunch continues after that but it appears it cannot restore some required assemblies.
Later ncrunch.exe fails with exit code 1 after an Build error:
Quote:ERROR (Build): XamarinApp.Android: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets (1590): Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'nCrunch.TestRuntime.DotNetCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea'. Perhaps it doesn't exist in the Mono for Android profile?
Dateiname: "nCrunch.TestRuntime.DotNetCore.dll"
What am I doing wrong?
Regards
Bernd