After installing Visual Studio 2026 Insiders (or maybe it was before, not sure) I have started to get these errors:
[PID:40992 16:49:22.3305 Core-5] Console tool is using engine mode: [Undetermined]
[PID:40992 16:49:22.3305 Core-5] Beginning end-to-end run of solution using tools from platform 'MSBuild for VS2022'
[PID:10468 16:50:11.1425 ?-27] Could not find a part of the path 'C:\_NCrunchWorkspaces\40992\10\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.Reconciliation.Migrations\obj\Debug\net9.0\MyApplication.MyConsolidation.Reconciliation.Migrations.GeneratedMSBuildEditorConfig.editorconfig'.
[PID:40992 16:50:11.2365 LocalBuildTask-28] ERROR (Build): MyApplication.MyConsolidation.Reconciliation.Migrations: C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\Roslyn\Microsoft.Managed.Core.targets (191): Could not find a part of the path 'C:\_NCrunchWorkspaces\40992\10\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.Reconciliation.Migrations\obj\Debug\net9.0\MyApplication.MyConsolidation.Reconciliation.Migrations.GeneratedMSBuildEditorConfig.editorconfig'.
[PID:10468 16:50:13.5955 ?-27] Could not find a part of the path 'C:\_NCrunchWorkspaces\40992\9\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.Database.Migrations\obj\Debug\net9.0\MyApplication.MyConsolidation.Database.Migrations.GeneratedMSBuildEditorConfig.editorconfig'.
[PID:40992 16:50:13.6585 LocalBuildTask-27] ERROR (Build): MyApplication.MyConsolidation.Database.Migrations: C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\Roslyn\Microsoft.Managed.Core.targets (191): Could not find a part of the path 'C:\_NCrunchWorkspaces\40992\9\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.Database.Migrations\obj\Debug\net9.0\MyApplication.MyConsolidation.Database.Migrations.GeneratedMSBuildEditorConfig.editorconfig'.
[PID:40992 16:50:17.9865 LocalBuildTask-28] ERROR: System.Exception: Unable to instrument type MyApplication.MyConsolidation.DAL.Entities.Eod.Cache.AgreementEntity due to exception: System.Exception: Unable to instrument method System.Void MyApplication.MyConsolidation.DAL.Entities.Eod.Cache.AgreementEntity::.cctor() due to exception: System.IO.PathTooLongException: The path 'C:\_NCrunchWorkspaces\40992\12\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.DAL\obj\Debug\net9.0\MemoryPack.Generator\MemoryPack.Generator.MemoryPackGenerator\MyApplication.MyConsolidation.DAL.Entities.Eod.Cache.AgreementEntity.MemoryPackFormatter.g.cs' could not be processed because it exceeded the maximum allowed length of 259 characters. Try setting your 'Workspace base path' setting closer to the root of your disk, or set the registry entry 'SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled'=1
at nCrunch.Common.IO.DiskPath..ctor(String absolutePath, Boolean pathIsChecked)
at nCrunch.Common.IO.FilePath..ctor(String absoluteFilePath, Boolean isAbsoluteFilePathChecked)
at nCrunch.Common.IO.FilePath.FromAbsolutePath(String absoluteFilePath)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.☻(CilSequencePoint ☻)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.☻(CilManipulationOperation ☻, CilMethodDefinition ♥, CilTypeDefinition ♣, CilMethodBody, Boolean ♠)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.☻(CilTypeDefinition ☻, CilManipulationOperation ♥, IInstrumentationFilter[] ♣)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.☻(CilTypeDefinition ☻, CilManipulationOperation ♥, IInstrumentationFilter[] ♣)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.♣.♥()
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.♣.♥()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.♥.☻()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.Instrument(IInstrumentationFilter[] instrumentationFilters, PerfTracker perfTracker)
at nCrunch.Compiler.CilProcessingTasks.CilInstrumentationTask.ProcessTask(IBuiltAssembly builtAssembly, ComponentInstrumentationParameters instrumentationParameters, BuildOutput output)
at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.☻()
[PID:40992 16:50:18.2205 LocalBuildTask-28] ERROR: System.IO.PathTooLongException: The path 'C:\_NCrunchWorkspaces\40992\12\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.DAL\obj\Debug\net9.0\MemoryPack.Generator\MemoryPack.Generator.MemoryPackGenerator\MyApplication.MyConsolidation.DAL.Entities.Eod.Cache.AgreementEntity.MemoryPackFormatter.g.cs' could not be processed because it exceeded the maximum allowed length of 259 characters. Try setting your 'Workspace base path' setting closer to the root of your disk, or set the registry entry 'SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled'=1
at nCrunch.Common.IO.DiskPath..ctor(String absolutePath, Boolean pathIsChecked)
at nCrunch.Common.IO.FilePath..ctor(String absoluteFilePath, Boolean isAbsoluteFilePathChecked)
at nCrunch.Common.IO.FilePath.FromAbsolutePath(String absoluteFilePath)
at nCrunch.Compiler.CoverageReportStructure.☻(Dictionary`2 ☻, String ♥)
at nCrunch.Compiler.CoverageReportStructure.♥.☻(KeyValuePair`2 ☻)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at nCrunch.Compiler.CoverageReportStructure.☻(CilAssembly ☻, Dictionary`2 ♥)
at nCrunch.Compiler.CoverageReportStructure.FromAssembly(CilAssembly assembly, Dictionary`2 codeFilePathsByWorkspaceFilePath, DirectoryPath instrumentationParametersForegroundOutDir)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.ExtractCoverageReportStructure()
at nCrunch.Compiler.CilProcessingTasks.CilExtractCoverageReportStructureTask.ProcessTask(IBuiltAssembly builtAssembly, ComponentInstrumentationParameters instrumentationParameters, BuildOutput output)
at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.☻()
[PID:40992 16:50:18.2835 LocalBuildTask-28] ERROR (Build): MyApplication.MyConsolidation.DAL: (0): NCrunch has encountered an internal error: System.Exception: System.IO.PathTooLongException: The path 'C:\_NCrunchWorkspaces\40992\12\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.DAL\obj\Debug\net9.0\MemoryPack.Generator\MemoryPack.Generator.MemoryPackGenerator\MyApplication.MyConsolidation.DAL.Entities.Eod.Cache.AgreementEntity.MemoryPackFormatter.g.cs' could not be processed because it exceeded the maximum allowed length of 259 characters. Try setting your 'Workspace base path' setting closer to the root of your disk, or set the registry entry 'SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled'=1
at nCrunch.Common.IO.DiskPath..ctor(String absolutePath, Boolean pathIsChecked)
at nCrunch.Common.IO.FilePath..ctor(String absoluteFilePath, Boolean isAbsoluteFilePathChecked)
at nCrunch.Common.IO.FilePath.FromAbsolutePath(String absoluteFilePath)
at nCrunch.Compiler.CoverageReportStructure.☻(Dictionary`2 ☻, String ♥)
at nCrunch.Compiler.CoverageReportStructure.♥.☻(KeyValuePair`2 ☻)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at nCrunch.Compiler.CoverageReportStructure.☻(CilAssembly ☻, Dictionary`2 ♥)
at nCrunch.Compiler.CoverageReportStructure.FromAssembly(CilAssembly assembly, Dictionary`2 codeFilePathsByWorkspaceFilePath, DirectoryPath instrumentationParametersForegroundOutDir)
at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.ExtractCoverageReportStructure()
at nCrunch.Compiler.CilProcessingTasks.CilExtractCoverageReportStructureTask.ProcessTask(IBuiltAssembly builtAssembly, ComponentInstrumentationParameters instrumentationParameters, BuildOutput output)
at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.☻()
at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.ProcessTasks(IReservedCapacity reservedBackgroundCapacity)
at nCrunch.Compiler.RemoteBuildRunner.☻(ComponentInstrumentationParameters ☻, BuildOutput ♥, IBackgroundTaskProcessor ♣)
at nCrunch.Compiler.RemoteBuildRunner.PerformPostProcessingOfBuiltAssembly(ComponentInstrumentationParameters instrumentationParameters, BuildOutput output, IBackgroundTaskProcessor backgroundTaskProcessor)
at nCrunch.Core.BuildManagement.BuildEnvironment.☻()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridClientDescription clientDescription, Boolean extractCoverageReportStructure)
[PID:40992 16:50:48.0805 ?-1] Reporting engine execution results
Execution result based on (ConsoleOutput):
Load errors: False
Failed tasks: True
Failed tests: True
Not run tests: False
Impacted tests:
Result: BuildFailure
[PID:40992 16:50:48.7365 ?-1] Shutting down engine
When I try to run with Rider I get this error on building project:
Quote:NCrunch: If you are experiencing problems in getting this project to build, have a look at
https://www.ncrunch.net/...ng_project-build-issues
..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\Roslyn\Microsoft.Managed.Core.targets (191, 5): Could not find a part of the path 'C:\_NCrunchWorkspaces\23772\89\Projects\MyApplication.MyCalculations\MyApplication.MyConsolidation\MyApplication.MyConsolidation.Database.Migrations\obj\Debug\net9.0\MyApplication.MyConsolidation.Database.Migrations.GeneratedMSBuildEditorConfig.editorconfig'.
P.S. `LongPathsEnabled` is set to 1