I'm trying to get NCrunch to run the tests which ship with EF Core (
https://github.com/dotnet/efcore)
I've set the TargetFramework = net8.0 custom build property for all the projects, but now every project build fails with:
Quote:
System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> nCrunch.Common.UserException: Errors occurred while trying to load the project file:
Assets file 'D:\Projects\github\dylanbeattie\efcore\artifacts\obj\nCrunchTemp_fd77ce7d-d83c-44de-ad24-59161fbb704f\project.assets.json' not found. Run a NuGet package restore to generate this file.
at nCrunch.Compiler.ComponentAnalysisContext.()
at nCrunch.Compiler.ComponentAnalysisContext.AnalyseComponentBuild()
at nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(ComponentLoadParameters parameters)
--- End of inner exception stack trace ---
I've found a previous issue (
https://forum.ncrunch.net/Default.aspx?g=posts&t=2590&) referencing this error, but I can't find any reference to BaseIntermediateOutputPath anywhere in the EF Core source code, other than in a Powershell script which I'm pretty sure doesn't affect the NCrunch build process.
Is there another property or build setting I should be looking for? It sounds like exactly the same issue as previously but with a different underlying cause.