Sadly for one of our simple test project this still happens and causes the NCrunch build step on TeamCity to fail:
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 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.
System.Runtime.Loader v4.3.0
System.Runtime.Serialization.Formatters v4.3.0
System.Runtime.Serialization.Primitives v4.3.0
System.Diagnostics.TraceSource v4.3.0
[...]
We tried all the other solutions provided here in the forum (copy .nuget folder, get it all working via VS2019, in the console it works, no problem with msbuild /t:restore, etc.) and also the /TeamCityDisableTestNotRunFailureReporting doesn't help one bit, the error still pops up and causes the build step to fail :(
Strange thing is we had this same problem a week ago on a different bigger project and there the above fixes helped, no idea why this one is still failing, if you want to try yourself I can send the solution (but any Hello World one line .netcoreapp3.1 project currently fails for us the same way). We used the exact steps as described here:
https://www.ncrunch.net/...ides_console-tool-usage
TeamCity can ignore the Error if the checkbox "an error message is logged by build runner Reset" under Failure Conditions (teamcity project configuration) is disabled, for some reason TeamCity still fails (maybe a bug on their side .. dunno). Better would be if NCrunch doesn't report this an an error because everything after that still works fine (and yes we have all those .nuget packages even though they are not used at all).