NCrunch V5.7.0.3
I'm getting this error when NCrunch is trying to build one of my test projects:
Quote:
The file 'D:\repos\company\repo\src\MyApp\tests\MyApp.Tests\Path\File.txt' could not be written to the workspace due to error:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\ncrunch\workspace\56184\132\src\MyApp\tests\MyApp.Tests\Path\File.txt'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at nCrunch.Common.IO.FilePath.CopyTo(FilePath destinationPath, Boolean waitForLock)
at nCrunch.Core.ProjectItems.SnapshotComponentMember.WriteToFile(FilePath fileToWriteTo)
at nCrunch.Core.WorkspaceManagement.WorkspaceBuilder.(SnapshotComponentMember )
NCrunch: v8.0.300 of the Dotnet SDK is being used by the NCrunch client, but this server is using v, which is the closest matching version found installed. This may cause issues with the build system. Consider installing v8.0.300 of the Dotnet SDK on this machine.
The test project has some txt files that are copied to the build output directory (with appropriate csproj itemgroup). When I look into "D:\ncrunch\workspace\56184\", the directory "132" is not there. ("131" and other "previous" numbered directories, however, are). I've "anonymised" the path above however it is a long path, in case that might be an issue (I've enabled long paths in the OS).
I've tried the "Additional files to include" but that didn't make any difference. I keep coming back to the fact that "\132" doesn't exist is where the problem is. Note this number changes after I perform "Reload and rebuild selected component", but the result is still the same.
Any ideas how to resolve?
Edit: that last message "but this server is using v, " seems it has bugs.