Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch fails to build solution with deeply nested linked file
mstortz
#1 Posted : Friday, September 13, 2013 8:02:32 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/13/2013(UTC)
Posts: 1
Location: United States of America

Hello!

It seems that NCrunch fails to build a project that contains a linked file that is either more than a certain number or directories deep or located on a path that exceeds a certain length. I put several near-copies of the same file in various places to determine where the failure point is. For a sufficiently long path, I get an error in the build status window like:

CSC (0)#0: Source file '..\..\..\..\..\..\..\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\dummy\Class9.cs' could not be found

However, it will build referencing a class located less deeply. Visual Studio is able to build the project in either case.

===Mike


Remco
#2 Posted : Friday, September 13, 2013 9:52:11 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Mike -

Thanks for sharing this issue.

The problem is caused by a structural limit in the file system that prevents file paths being longer than a fixed length. There is no way for NCrunch to automatically work around this as it needs to space files relative to their parent project in the workspace.

If this issue is preventing you from building a project in your solution, try moving the relative dependencies of this project closer to the project file. Setting the workspace base path closer to the root of your hard disk will also give the workspace manager more breathing room and may allow you to avoid the problem entirely.


Cheers,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download