Rank: Newbie
Groups: Registered
Joined: 6/13/2023(UTC) Posts: 4 Location: Germany
Was thanked: 1 time(s) in 1 post(s)
|
Hi, I am getting a PathTooLongException and the suggested fixes don't work (partially because the path is a really long path in GAC). Setting LongPathsEnabled=1 doesn't seem to have an effect (not even after a reboot). Unfortunately I can't change the dependency on Rebex.Networking and that long file name is because that includes the assembly's PublicKey. Code: NCrunch has encountered an internal error: System.Exception: nCrunch.Compiler.StaticManipulation.CilTypeHashException: Unable to hash type '<Redacted>' due to exception: System.IO.PathTooLongException: The path 'C:\Windows\assembly\GAC_MSIL\Rebex.Networking\6.0.8123.0__00240000048000009400000006020000002400005253413100040000010001003f06465fec807e859ef85ffb7213558c5c658ddbf411fbb91a8f0d209f3b7cd8c8372cb8e71d5212ce567c1e5b42de4cdfedfa8a541501776d068216bd80573af2e38780e0e277c2521d9d523bd08fad91e6ef8f021cb834694520e9bb990b900ae24aadce5a19966e47b864bb35ab0cccc402290a523d57b6bfe263f3f7d49f\Rebex.Networking.dll' 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.FromDirectory(DirectoryPath directory, String fullFileName) at nCrunch.Compiler.Cil.CilSession.(DirectoryPath , String ) at nCrunch.Compiler.Cil.CilSession.(String , UInt16 , UInt16 , UInt16 , UInt16 , String , String ) at nCrunch.Compiler.Cil.CilSession.(String , String , UInt16 , UInt16 , UInt16 , UInt16 , String , String ) at nCrunch.Compiler.Cil.CilSession.LoadAssembly(CilAssemblyReference assemblyReference) at nCrunch.Compiler.Cil.CilSession.GetReferencedModule(CilModule referencingModule, UInt32 assemblyRefTableRowIndex) at nCrunch.Compiler.Cil.AssemblyIdentity.CilAssemblyRefTable.GetAssemblyModuleByRowIndex(UInt32 tableIndex) at nCrunch.Compiler.Cil.Types.CilTypeReference.(CilModule ) at nCrunch.Compiler.Cil.Types.CilTypeDefinition.ResolveBaseType() at nCrunch.Compiler.Cil.Methods.CilMethodsWithInheritanceEnumerator.MoveNext() at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.ExtractClassMethodData(TestFrameworkDescription[] applicableTestFrameworks, IDictionary`2 codeFileIDsByForegroundFilePath, Boolean storeImpactHashes) at nCrunch.Compiler.StaticManipulation.BuiltCilAssembly.ExtractClassMethodData(TestFrameworkDescription[] applicableTestFrameworks, IDictionary`2 codeFileIDsByForegroundFilePath, Boolean storeImpactHashes) at nCrunch.Compiler.CilProcessingTasks.CilMethodHashingTask..() at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity) at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.() at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.ProcessTasks(Int32 backgroundThreadsAllowed) 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)
Do i need to add the longPathAware flag in a manifest somewhere? Best regards, Marian
|