Paket
Paket copied to clipboard
Exclude directories from processing
Description
A small feature request
While adding Paket to our solution, we noticed that it runs through all subdirectories to scan for paket.references etc. There are two inconvenient things here:
- It also parses the .svn directory, where it should never ever touch anything anyway.
- we have some code generation directories that contain '.project' files, which Paket dutifully warns about.
None of these issues is critical; the .svn directory contains essentially guids as filenames, and the '.project' files are not really touched because there is no paket.references in these directories or above. However, it seems nice to be able to exclude directories from the automatic search of "paket install" (or, alternatively, include them, we have just two that are relevant).
For example, running something like "paket install --include-dir=src'.
I think the .svn could be easily fixed as a "up-for grabs" PR. You could scan the repository for ".git" and just add ".svn" in those places.
There seems to be a workaround for the second part in Issue #918. Of course, I did not search for closed issues...
Update: We just had a build problem because of this issue again. Our situation is a multi-language build (C# + C++) that is administrated by CMake, and the normal developers, who should not know anything about CMake and the build details, get a script that sets up a build directory inside the working copy.
In obscure corner cases, there happens to be a stray .csproj file lying around in the build directory (outside our control), and "paket restore" failed.
Again, we can fix this with the solution from issue #918, but magically putting files in some directories feels wrong. I would strongly favor a command-line option here.