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



Additional files to include not copying all files
#1 Posted : Thursday, August 8, 2019 8:51:03 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/25/2018(UTC)
Posts: 2
Location: United Kingdom

I've been using nCrunch for several years and haven't seen this before but now I'm finding a problem with "Additional files to include".

I've a solution that has a large number of nuget packages, some of these packages have tools, build and runtimes folders that contain files that are needed for the build. We use Paket for package management so nCrunch doesn't automatically pick these up (I assume that's why) so I'm adding the following expressions to the solution additional files to include:


Previously this worked fine, but now it seems to be only copying some of the files. For example I might see "packages\systemtests\Selenium.Chrome.WebDriver\build" but not "packages\systemtests\Selenium.Chrome.WebDriver\driver" within the workspace folder.

Adding the directory explicitly works fine but the glob expressions seem to miss some of the files but not others. I've also tried using **.* instead of ** in the middle of the path, same result.

Hopefully someone can help shed some light on this as adding the individual folders one at a time is quite time consuming, especially when the above expressions used to work fine.
#2 Posted : Thursday, August 8, 2019 9:28:53 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,090

Thanks: 792 times
Was thanked: 1036 time(s) in 986 post(s)
Hi, thanks for sharing this issue.

The notation '**' inside a directory name isn't a supported structure of NCrunch's wildcard resolver.

So the path '..\packages\MyDir\runtimes\**.*' is valid, but '..\packages\**\runtimes\**.*' is not supported. The code makes no special allowance for a '**' anywhere except at the end of the specifier, so without going through the code in detail and testing various cases, I cannot confirm exactly what kind of result this will produce but I am fairly certain that it will be the wrong one.

You'll need to either be more specific or more general with the files you're including. For example:



#3 Posted : Monday, August 12, 2019 9:53:29 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/25/2018(UTC)
Posts: 2
Location: United Kingdom

Thanks for the reply. Unfortunately there are quite a few packages that have build, runtimes, tools folders that are not getting pulled in and copying the whole packages folder slows the builds down a lot as we've around 100-150 packages being pulled in to the build. Having the option to specific patterns in the path would be a really useful feature to have but at least I know why it's not working now.
Users browsing this topic
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.035 seconds.